Giter Club home page Giter Club logo

actions's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actions's Issues

Github Token required even if no github comment is requested

It seems that Github Token is required even if user requests no github comment to be added.

This is not a huge issue in most cases, but still adds a bit complexity and makes it harder to run locally. Also the error message is not the clearest.

Error: Parameter token or opts.auth is required
| at Object.getAuthString (/run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:1:49929)
| at Object.getOctokitOptions (/run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:1:51407)
| at Object.getOctokit (/run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:1:49117)
| at /run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:21:394441
| at /run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:21:394882
| at Object. (/run/act/actions/resideo-actions-twistlock@518f3232f66fc45b1d74ccec9dcfffe664df67ba/twistlock/dist/index.js:21:394921)

It looks like it should be enough to make this initialization conditional in index.ts
const token = core.getInput("token") === "" ? process.env.GITHUB_TOKEN || "" : core.getInput("token"); const octokit = github.getOctokit(token);

Unless it's really used for something else than github comment, then of course it makes sense to keep it as it is.

Security Alert - Upgrade minimist to version 1.2.2 or later

Note from Warren

I'm creating this issue as I received a security alert, but it cannot auto-generate a PR. I've copied the details below.

Security Alert Info

1 minimist vulnerability found in yarn.lock

Remediation
Upgrade minimist to version 1.2.2 or later. For example:

minimist@^1.2.2:
version "1.2.2"
Always verify the validity and compatibility of suggestions with your codebase.

Details
GHSA-7fhm-mqm4-2wp7
moderate severity
Vulnerable versions: < 1.2.2
Patched version: 1.2.2

There are high severity security vulnerabilities in two of ESLints dependencies:

  • acorn
  • minimist

The releases 1.8.3 and lower of svjsl (JSLib-npm) are vulnerable, but only if installed in a developer environment. A patch has been released (v1.8.4) which fixes these vulnerabilities.

Identifiers:

CVE-2020-7598
SNYK-JS-ACORN-559469 (does not have a CVE identifier)

Create Services Summary Component

Motivation

Don't repeat ourselves with Services show details.

Approach

Will be solely a .demo test drive. This will be a component that can be added to related Show pages, such as Location, Account, and Device. *For this task data will be null

  • Create src/components/Services/ServiceSummary.demo.tsx
  • This will display the Service heading of Type as h2 then Alarm Reporting Number
  • Update test/account-show-test.demo.ts to account for new display fields

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.