-
-
Notifications
You must be signed in to change notification settings - Fork 432
29 lines (24 loc) · 660 Bytes
/
Copy pathgovulncheck.yml
File metadata and controls
29 lines (24 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: govulncheck
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
- cron: '0 12 * * 1'
permissions:
contents: read
jobs:
govulncheck:
name: Scan Go dependencies for known vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: "stable"
cache-dependency-path: go.sum
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...