-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.49 KB
/
Copy pathgovulncheck.yaml
File metadata and controls
52 lines (52 loc) · 1.49 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
name: govulncheck
on:
push:
pull_request:
schedule: # daily at 09:00 UTC
- cron: '0 9 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- { go-version: stable }
- { go-version-file: go.mod }
deps:
- locked
- latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version: ${{ matrix.go.go-version }}
go-version-file: ${{ matrix.go.go-version-file }}
- uses: geomys/sandboxed-step@a6bfc174e532cea4f378e3427bcde8b714c2e810
with:
run: |
export GODEBUG=cpu.aes=off
if [ "${{ matrix.deps }}" == "latest" ]; then
go get -u ./...
go mod tidy
fi
go test -v ./...
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version-file: go.mod
- uses: geomys/sandboxed-step@a6bfc174e532cea4f378e3427bcde8b714c2e810
with:
run: |
export GODEBUG=cpu.aes=off
go run golang.org/x/vuln/cmd/govulncheck@latest ./...