Debian Codegraph @

.github/workflows/vuln.yaml

raw
1 name: Vulnerability Scan
2
3 on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8 schedule:
9 - cron: "0 6 * * *"
10
11 permissions:
12 contents: read
13 security-events: write
14
15 jobs:
16 govulncheck:
17 runs-on: ${{ vars.GHA_WORKER_SMALL || 'ubuntu-latest' }}
18
19 steps:
20 - name: Run govulncheck
21 # Use commit hash here to avoid a re-tagging attack, as this is a third-party action
22 # Commit b625fbe08f3bccbe446d94fbf87fcc875a4f50ee = tag v1.0.4
23 uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee
24 with:
25 go-package: ./...
26 output-format: sarif
27 output-file: govulncheck.sarif
28
29 - name: Upload SARIF results
30 if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork
31 uses: github/codeql-action/upload-sarif@v4
32 with:
33 sarif_file: govulncheck.sarif