Skip to content

Commit 0091d9c

Browse files
committed
Add weekly govulncheck workflow
Signed-off-by: Lennart Jern <[email protected]>
1 parent a7c0e20 commit 0091d9c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Weekly security scan
2+
3+
on:
4+
schedule:
5+
# Cron for every Monday at 4:12 UTC.
6+
- cron: "12 4 * * 1"
7+
8+
# Remove all permissions from GITHUB_TOKEN except metadata.
9+
permissions: {}
10+
11+
jobs:
12+
scan:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
branch: [main, release-1.32, release-1.31, release-1.30]
17+
name: Verify security
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out code
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
22+
with:
23+
ref: ${{ matrix.branch }}
24+
- name: Set up Go
25+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
26+
with:
27+
# Keep this in sync with the go version in the Dockerfile.
28+
go-version: 1.23.6
29+
- name: Run verify security target
30+
run: make verify-security

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ vet: check
103103
cover: work
104104
go test -tags=unit $(shell go list ./...) -cover
105105

106+
verify-security: work
107+
go run golang.org/x/vuln/cmd/[email protected] ./...
108+
106109
docs:
107110
@echo "$@ not yet implemented"
108111

0 commit comments

Comments
 (0)