name: "govulncheck" on: push: branches: [ "main", "next" ] pull_request: # The branches below must be a subset of the branches above branches: [ "main", "next" ] schedule: - cron: '29 21 * * 6' jobs: govulncheck: runs-on: ubuntu-latest timeout-minutes: 5 steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: # Note this is intentionally the latest 1.x version, not the one we # use in go.mod, as that avoids noise if there are vulnerabilities # in the Go toolchain itself. go-version: ">=1.x" check-latest: true - name: install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest - name: run govulncheck run: govulncheck ./...