Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

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

Repository files navigation

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"