This repo contains a BASH workflow & script that provides additional functionality as part of a CI/CD Workflow:
- Run Snyk Code test to retrieve first-party code vulnerabilities and export the results as a SARIF
- Uses git diff between the merge-base and HEAD to get modified files
- Compares Snyk Code results to the modified files and exports an updated diff excluding results for files that weren't modified
- Creates a Snyk report Artifact
- Forked Repo from Goof, A vulnerable Node.js demo application, based on the Dreamers Lab tutorial.
- Bash Workflow
- Bash Script
- Fork this Repo
- Verify that a Snyk API token is configured as a secret for GH Actions
- Change the value of
--org
in line 24 of the Bash Workflow to the orgID for the Snyk Organization - Commit Changes and Merge
- View Snyk Report in the Artifacts within the Summary Page for Workflow Run in Actions