snyk-tech-services / snyk-pnpm-github-action

Other
2 stars 2 forks source link

Snyk logo


Known Vulnerabilities

Snyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad hoc basis and as part of your CI (Build) system.

Snyk snyk-pnpm-github-action

GitHub action using snyk-pnpm-depTree-api-tool to convert a pnpm lockfile into a DepGraph and send it to the snyk API to scan

Inputs

SNYK_TOKEN

Required API snyk token. Can be found here: https://snyk.io/account/

Org

Required The name of the snyk organization to run the test against.

pnpmLockfilePath

Required The root path of the project to test.

includeDev

Optional Include dev dependencies while building the depGraph. True or false - default = false

Example usage

jobs:
  pnpm_snyk_check:
    runs-on: ubuntu-latest
    name: Snyk post processing
    steps:
      - uses: actions/checkout@v2
      - name: Snyk API pnpm scan
        id: pnpm-scan-api-tool
        uses: snyk-tech-services/snyk-pnpm-github-action@master
        with:
          snykToken: ${{ secrets.snykToken }}
          pnpmLockfilePath: "./test/fixtures"
          snykOrganization: "playground"
          IncludeDev: "false"