We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d77dd8b + b5855ee commit e2b9625Copy full SHA for e2b9625
.github/workflows/vulnerability-scan.yaml
@@ -0,0 +1,34 @@
1
+name: Vulnerability Scan
2
+
3
+on:
4
+ push:
5
+ branches: ["master"]
6
+ pull_request:
7
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
34
+ sarif_file: ${{ steps.scan.outputs.sarif }}
0 commit comments