-
Notifications
You must be signed in to change notification settings - Fork 14
chore: Add Trivy filesystem scan #16
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
Conversation
Reviewer's GuideIntroduce a new GitHub Actions workflow that runs a Trivy filesystem scan on commits and pull requests to main, captures all vulnerabilities in SARIF format, enforces a fail-on-high-severity check, and uploads results to the Security tab. Sequence diagram for Trivy scan and SARIF upload in CIsequenceDiagram
participant Developer
participant GitHubActions
participant Trivy
participant SecurityTab
Developer->>GitHubActions: Push/PR to main
GitHubActions->>GitHubActions: Checkout code
GitHubActions->>Trivy: Run FS scan (SARIF output)
Trivy-->>GitHubActions: trivy-results.sarif
GitHubActions->>Trivy: Run FS scan (Table output, fail on CRITICAL/HIGH)
Trivy-->>GitHubActions: Vulnerability report
GitHubActions->>SecurityTab: Upload SARIF results
SecurityTab-->>GitHubActions: Results available
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Summary by Sourcery
Add a GitHub Actions workflow to perform file system vulnerability scans using Trivy and surface results in the Security tab
CI: