-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 972 Bytes
/
security.yml
File metadata and controls
40 lines (32 loc) · 972 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
38
39
40
name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 6 * * 1" # weekly Monday 6am UTC
permissions:
contents: read
jobs:
gosec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Run gosec
uses: securego/gosec@223e19b8856e00f02cc67804499a83f77e208f3c # v2.25.0
env:
GOFLAGS: -buildvcs=false
with:
args: -exclude=G104,G301,G304,G306 -exclude-dir=cmd/generated ./...
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: go.mod
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
- name: Run govulncheck
run: govulncheck ./...