-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add vulnerability scanning github action #11096
Conversation
Trivy scan found the following vulernbilities:
|
Snyk scan found the following vulnerabilities:
|
Trivy scan found the following vulnerabilities:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks @trevorwhitney. Just one non-blocking clarification.
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test | ||
args: --severity-threshold=high --json-file-output=snyk.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: rationale behind high
value here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought was to reduce noise by only showing high and above. I need to add that to the trivy action as well. would you prefer we make it medium? remove completely?
fbab807
to
3edd776
Compare
This reverts commit 9f7ce1f.
Adds a GitHub action that will run `snyk` and `trivy` scans against PRs and comment on the PR if a high or critical vulnerability is found
What this PR does / why we need it:
Adds a GitHub action that will run
snyk
andtrivy
scans against PRs and publish the results as a comment on the PR.Examples of what the comments will look like can be seen on this PR. It will only add a single comment for each scanner in the future, this one has multiples because of some of the iterations it went though.