mirror of
https://github.com/Telecominfraproject/wlan-cloud-kube-state-metrics.git
synced 2025-10-29 09:42:33 +00:00
Add govulncheck cron
Add `govulncheck` cron configuration. Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
This commit is contained in:
26
.github/workflows/cron.yml
vendored
Normal file
26
.github/workflows/cron.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: cron
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Run every Monday
|
||||
- cron: '0 0 * * 1'
|
||||
|
||||
env:
|
||||
GO_VERSION: "^1.19"
|
||||
|
||||
jobs:
|
||||
ci-security-checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Checkout code
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v3
|
||||
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 -v ./...
|
||||
Reference in New Issue
Block a user