Skip to content

Commit f475244

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. Rename trivy.yml to security-scan.yml. Drop secret scanning. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db416d9 commit f475244

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
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@45775bd8235c68ba998cffa5171334d58593da47 # v3
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)