Skip to content

Commit a2c5706

Browse files
JAORMXclaude
andauthored
chore: migrate from Trivy to Grype for vulnerability scanning (#381)
Replace aquasecurity/trivy-action with anchore/scan-action (Grype) v7.3.2. Rename trivy.yml to security-scan.yml. Drop secret scanning. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 44d6d5e commit a2c5706

2 files changed

Lines changed: 30 additions & 33 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Security Scan
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
grype-security-scan:
8+
runs-on: ubuntu-latest
9+
name: Grype
10+
permissions:
11+
contents: read
12+
security-events: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
16+
- name: Security Scan
17+
id: grype-scan
18+
uses: anchore/scan-action@7037fa011853d5a11690026fb85feee79f4c946c # v7.3.2
19+
with:
20+
path: "."
21+
fail-build: true
22+
only-fixed: true
23+
severity-cutoff: "high"
24+
output-format: "sarif"
25+
26+
- name: Upload scan results to GitHub Security tab
27+
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4
28+
with:
29+
sarif_file: ${{ steps.grype-scan.outputs.sarif }}
30+
category: "grype"

.github/workflows/trivy.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)