Coder Social home page Coder Social logo

ncm-report-github-action's Introduction

NCM Report Github Action

NodeSource Certification process

This action generates and prints a project-wide report of directory risk and quality of installed or specified packages.

Inputs

token

Default: <empty>

Required Learn more about obtaining NodeSource service tokens and configuring permissions here. We recommend you using repository Secrets to store this value and use it in the workflow.

long

Default: no

Optional Set yes if you want the report display a list of all modules.

compliance

Default: no

Optional Set yes if you want the report only display non-compliant packages.

security

Default: no

Optional Set yes if you want the report only display packages with vulnerabilities.

github_token

Default: ${{ secrets.GITHUB_TOKEN }}

Required Set to pass the internal GitHub Token for NCM to update the check and make annotations. Use the default value (${{ secrets.GITHUB_TOKEN }}), you don't need to create any token in Secrets for this, GitHub automatically creates and sets this in the Action context.

github_job_name

Default: <empty>

Required You need to set the same name you set to your job. If not, annotations will not be able to be included in your PR or RunCheck.

Example usage

This action can be used in the following scenarios:

  • Default report:
uses: nodesource/ncm-report-github-action@master
with:
  token: ${{ secrets.NCM_TOKEN }}
  github_token: ${{ secrets.GITHUB_TOKEN }}
  github_job_name: N|S -> NCM Pipeline
  • Long version of the report:
uses: nodesource/ncm-report-github-action@master
with:
  token: ${{ secrets.NCM_TOKEN }}
  long: 'yes'
  github_token: ${{ secrets.GITHUB_TOKEN }}
  github_job_name: N|S -> NCM Pipeline
  • Report with compliance only informaiton:
uses: nodesource/ncm-report-github-action@master
with:
  token: ${{ secrets.NCM_TOKEN }}
  compliance: 'yes'
  github_token: ${{ secrets.GITHUB_TOKEN }}
  github_job_name: N|S -> NCM Pipeline
  • Report with package vulnerabilities only informaiton:
uses: nodesource/ncm-report-github-action@master
with:
  token: ${{ secrets.NCM_TOKEN }}
  compliance: 'yes'
  github_token: ${{ secrets.GITHUB_TOKEN }}
  github_job_name: N|S -> NCM Pipeline

To generate the report, NCM needs to get your node_modules folder to analyze and compare data, so, you might need to use more actions to get your code inside the workflow and the dependencies installed. We recommend you using:

- uses: actions/checkout@v2
- run: npm install

Feel free to check the workflow in github/workflows/ncm-report.yml for reference and real world usage example.

ncm-report-github-action's People

Contributors

gioyik avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.