-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (33 loc) · 846 Bytes
/
Copy pathsecurity.yml
File metadata and controls
37 lines (33 loc) · 846 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
30
31
32
33
34
35
36
37
name: Security
on:
pull_request:
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/**"
push:
branches: [master]
schedule:
- cron: "0 20 * * 0"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: security-${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
govulncheck:
name: Go vulnerability reachability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Install pinned govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@v1.7.0
- name: Scan reachable vulnerabilities
run: .github/scripts/run-govulncheck.sh