Skip to content

Commit 43279bd

Browse files
committed
ci: add automated vulnerability scanning workflow
Add monthly scheduled vulnerability scans using govulncheck to detect known security issues in Go dependencies and code. - Run on push/PR to main branch - Monthly scheduled scan (1st of each month at 2 AM) - Manual trigger support via workflow_dispatch - Uses golang/govulncheck-action for comprehensive scanning Fixes #55
1 parent 612e312 commit 43279bd

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

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)