Add Trivy container vulnerability scanning#1
Merged
Conversation
Add build-time and scheduled Trivy scanning to the Docker workflow. Scans run after each push (using the built image tag) and weekly on the latest image. Includes a CVSS-based Rego ignore policy for batch bioinformatics containers and an empty .trivyignore for per-CVE exceptions. Results upload to GitHub Security tab via SARIF. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
By default, trivy-action ignores the severity filter for SARIF output, causing medium/low findings to leak into the GitHub Security tab. The limit-severities-for-sarif flag enforces the CRITICAL,HIGH filter on SARIF output as well. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dpark01
added a commit
to broadinstitute/viral-ngs
that referenced
this pull request
Mar 31, 2026
By default, trivy-action ignores the severity filter when producing SARIF output, allowing medium/low findings to leak into the GitHub Security tab. Adding limit-severities-for-sarif: true ensures only CRITICAL and HIGH findings appear in SARIF uploads. Inspired by broadinstitute/read-qc-tools#1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merged
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scanjoblatestimage viaschedulecronworkflow_dispatch.trivy-ignore-policy.rego) for batch bioinformatics containers, shared with viral-ngs and py3-bio.trivyignoretemplate for per-CVE exceptions (to be triaged after first scan)exit-code: 1(blocking)Test plan
scanjob runs afterbuildon this branch pushworkflow_dispatchand verify scan-only behavior (no rebuild).trivyignoreif needed🤖 Generated with Claude Code