Skip to content

Commit 762b679

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

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+
workflow_dispatch:
5+
schedule:
6+
# Cron for every Monday at 4:12 UTC.
7+
- cron: "12 4 * * 1"
8+
9+
# Remove all permissions from GITHUB_TOKEN except metadata.
10+
permissions: {}
11+
12+
jobs:
13+
scan:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
branch: [master, release-1.33, release-1.32, release-1.31]
18+
name: Verify security
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out code
22+
uses: actions/[email protected]
23+
with:
24+
ref: ${{ matrix.branch }}
25+
- name: Set up Go
26+
uses: actions/[email protected]
27+
with:
28+
go-version-file: go.mod
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)