govulncheck #92
This file contains 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: | |
schedule: | |
# Run every Monday | |
- cron: '0 0 * * 1' | |
env: | |
GO_VERSION: "^1.22" | |
permissions: | |
contents: read | |
jobs: | |
ci-security-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
name: Checkout code | |
- name: Set up Go 1.x | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install govulncheck binary | |
run: | | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Run security checks | |
run: | | |
govulncheck ./... |