govulncheck #102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: govulncheck | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| # Nightly (07:30 UTC, after CI's cron): new vulns land in the Go vuln DB | |
| # without any commit here, so a schedule — not just push/PR — is the gate | |
| # that actually catches them. | |
| - cron: "30 7 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| govulncheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: { go-version-file: go.mod } | |
| # Deliberately unpinned: vuln scanning wants the current tool and the | |
| # current database, unlike the reproducible build toolchain above. | |
| - run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... |