Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scheduled govulncheck #3642

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/govulncheck-cron-schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# "Govulncheck reports known vulnerabilities that affect Go code.
# It uses static analysis of source code or a binary's symbol table to narrow down reports to only those that could affect the application."
#
# For more information see https://go.dev/blog/vuln and https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck
name: 'Scheduled govulncheck'

# run schedule every work day at 9:42
on:
schedule:
- cron: '42 9 * * 1-5'

jobs:
govulncheck_job:
runs-on: ubuntu-latest
name: Run govulncheck

strategy:
fail-fast: false
matrix:
# CodeQL runs on these branches. Pattern matching doesn't work, so we need to add relevant branches manually.
branches:
- 'master'
- 'V5.4'
- 'V6.0'
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
# TODO: This should probably run against the builder or runtime in the Dockerfile.
# I don't think it is possible to detect those versions here, but maybe run against `go-version-input: 'stable'`
# and detect container vulnerabilities in a different action?
go-version-file: 'go.mod'
go-package: ./...
2 changes: 0 additions & 2 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
branches:
- 'master'
- 'V*'
schedule:
- cron: '21 10 * * 2'

jobs:
govulncheck_job:
Expand Down
Loading