Skip to content

nathan-roys/snyk-code-pr-check-changed-files

 
 

Repository files navigation

Example for Snyk Code PR Check for Changed Files

snyk-oss-category

Features

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

Contents

Running

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.5%
  • CSS 19.5%
  • Shell 15.8%
  • EJS 4.8%
  • Handlebars 2.5%
  • Dockerfile 0.7%
  • HTML 0.2%