Skip to content

Commit e2b9625

Browse files
authored
Merge pull request #290 from nodevault/copilot/add-vulnerability-scanner
Add Grype vulnerability scanner workflow
2 parents d77dd8b + b5855ee commit e2b9625

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Vulnerability Scan
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
permissions:
10+
contents: read
11+
security-events: write
12+
13+
jobs:
14+
grype-vulnerability-scan:
15+
name: Grype Vulnerability Scan 🔍
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Scan for vulnerabilities
22+
uses: anchore/scan-action@v7
23+
id: scan
24+
with:
25+
path: "."
26+
fail-build: true
27+
severity-cutoff: high
28+
output-format: sarif
29+
30+
- name: Upload SARIF report
31+
uses: github/codeql-action/upload-sarif@v3
32+
if: always()
33+
with:
34+
sarif_file: ${{ steps.scan.outputs.sarif }}

0 commit comments

Comments
 (0)