This is part of the course DevSecOps. You will see how to include SCA in your development process.
- Click on Use this template
to create a new repository in your GitHub account (don't fork it), and make sure to set the visibility to "Public".
- The GitHub actions should run automatically and be green.
- Create a free account on Snyk, go to your Account Settings, and copy your "Auth Token".
- In your GitHub project, go to "Settings" > "Secrets and variables" > "Actions",
and create a Repository Secret called
SNYK_TOKEN
with your Snyk Auth Token.
- In
.github/workflows/sca.yml
, uncomment the block labeled "Version 1" to enable Snyk.- After the next successful run of the GitHub actions, under GitHub's "Security Tab", you should now see "Code Scanning Alerts" being reported.
- In
requirements.txt
, update the version of the "requests" library to a newer version (e.g. from2.27.0
to2.32.2
-- or whatever Snyk suggests as a current version).- After the next successful run of the GitHub actions, you should now see fewer "Code Scanning Alerts" being reported.