Skip to content

Commit eaf2e9b

Browse files
JAORMXclaude
andcommitted
chore: migrate from Trivy to Grype for vulnerability scanning
Replace aquasecurity/trivy-action with anchore/scan-action (Grype) v7.3.2. Remove config scanning job (not supported by Grype). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5cc84d7 commit eaf2e9b

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/security.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,19 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
trivy-scan:
17-
name: Trivy Security Scan
16+
grype-scan:
17+
name: Grype Security Scan
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222

23-
- name: Run Trivy vulnerability scanner in repo mode
24-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
23+
- name: Run Grype vulnerability scanner
24+
id: grype-scan
25+
uses: anchore/scan-action@7037fa011853d5a11690026fb85feee79f4c946c # v7.3.2
2526
with:
26-
scan-type: 'fs'
27-
ignore-unfixed: true
28-
format: 'table'
29-
exit-code: '1'
30-
severity: 'CRITICAL,HIGH'
31-
32-
- name: Run Trivy vulnerability scanner in IaC mode
33-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
34-
with:
35-
scan-type: 'config'
36-
hide-progress: false
37-
format: 'table'
38-
exit-code: '1'
39-
severity: 'CRITICAL,HIGH'
27+
path: "."
28+
only-fixed: true
29+
output-format: "table"
30+
fail-build: true
31+
severity-cutoff: "high"

0 commit comments

Comments
 (0)