Skip to content

Commit 07db003

Browse files
authored
ci: add vulnerability scanning workflow with govulncheck
ci: add vulnerability scanning workflow with govulncheck
1 parent a7c4625 commit 07db003

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Vulnerability Scan
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 2 1 * *' # Run at 2 AM on the 1st of every month
10+
workflow_dispatch: # Allow manual triggering
11+
12+
permissions:
13+
contents: read
14+
security-events: write
15+
16+
jobs:
17+
vulnerability-scan:
18+
runs-on: ubuntu-latest
19+
name: Run govulncheck
20+
steps:
21+
- name: Check out code
22+
uses: actions/checkout@v5
23+
with:
24+
persist-credentials: false
25+
26+
- name: Set up Go
27+
uses: actions/setup-go@v5
28+
with:
29+
go-version-file: 'go.mod'
30+
31+
- name: Run govulncheck
32+
uses: golang/govulncheck-action@v1
33+
with:
34+
go-package: ./...

0 commit comments

Comments
 (0)