Skip to content

Commit d2dfe7e

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 for vulnerability scanning. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8bbdc66 commit d2dfe7e

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/_security-checks.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@ on:
44
permissions:
55
contents: read
66
jobs:
7-
trivy:
8-
name: Trivy
7+
grype:
8+
name: Grype
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout Repository
1212
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1313

1414
- name: Scan repo
15-
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # 0.32.0
15+
id: grype-scan
16+
uses: anchore/scan-action@7037fa011853d5a11690026fb85feee79f4c946c # v7.3.2
1617
with:
17-
scan-type: 'fs'
18-
scan-ref: '.'
19-
scanners: 'vuln,secret,config'
20-
exit-code: '1'
21-
ignore-unfixed: 'true'
22-
severity: 'MEDIUM,HIGH,CRITICAL'
18+
path: "."
19+
fail-build: true
20+
only-fixed: true
21+
severity-cutoff: "medium"
2322

2423
npm-audit:
2524
name: PNPM Audit

0 commit comments

Comments
 (0)