-
Notifications
You must be signed in to change notification settings - Fork 2
chore: migrate from Trivy to Grype for vulnerability scanning #448
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,22 +8,22 @@ on: | |
| permissions: | ||
| contents: read | ||
| jobs: | ||
| trivy: | ||
| name: Trivy | ||
| grype: | ||
| name: Grype | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Scan repo | ||
| uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0 | ||
| uses: anchore/scan-action@7037fa011853d5a11690026fb85feee79f4c946c # v7.3.2 | ||
| id: grype-scan | ||
| with: | ||
| scan-type: 'fs' | ||
| scan-ref: '.' | ||
| scanners: 'vuln,secret,config' | ||
| exit-code: '1' | ||
| ignore-unfixed: 'true' | ||
| severity: 'MEDIUM,HIGH,CRITICAL' | ||
| path: "." | ||
| fail-build: true | ||
|
Comment on lines
+19
to
+23
|
||
| only-fixed: true | ||
| severity-cutoff: "medium" | ||
| output-format: "table" | ||
|
|
||
| npm-audit: | ||
| name: PNPM Audit | ||
|
|
||
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.
The step
id: grype-scanis currently unused in this workflow. Consider removing it to reduce noise, or use it (e.g., to reference outputs) if you intend to consume scan results later in the job.