Skip to content

Commit 1736469

Browse files
committed
Add govulncheck cron
Add `govulncheck` cron configuration. Signed-off-by: Pranshu Srivastava <[email protected]>
1 parent a5242f4 commit 1736469

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cron.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: cron
2+
3+
on:
4+
schedule:
5+
# Run every Monday
6+
- cron: '0 0 * * 1'
7+
8+
env:
9+
GO_VERSION: "^1.19"
10+
11+
jobs:
12+
ci-security-checks:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
name: Checkout code
17+
- name: Set up Go 1.x
18+
uses: actions/setup-go@v3
19+
with:
20+
go-version: ${{ env.GO_VERSION }}
21+
- name: Install govulncheck binary
22+
run: |
23+
go install golang.org/x/vuln/cmd/govulncheck@latest
24+
- name: Run security checks
25+
run: |
26+
govulncheck -v ./...

0 commit comments

Comments
 (0)