Skip to content

Commit 13375a6

Browse files
authored
Use commit hash with actions (#203)
Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
1 parent 889c07b commit 13375a6

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

.github/workflows/go-test.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ${{ matrix.platform }}
1111
steps:
1212
- name: Install Go
13-
uses: actions/setup-go@v4
13+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
1414
with:
1515
go-version: ${{ matrix.go-version }}
1616
id: go
1717

1818
- name: Checkout code
19-
uses: actions/checkout@v4.1.1
19+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2020

2121
- name: Download dependencies
2222
run: go mod download
@@ -38,13 +38,13 @@ jobs:
3838
runs-on: ${{ matrix.platform }}
3939
steps:
4040
- name: Install Go
41-
uses: actions/setup-go@v4
41+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
4242
with:
4343
go-version: ${{ matrix.go-version }}
4444
id: go
4545

4646
- name: Checkout code
47-
uses: actions/checkout@v4.1.1
47+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4848

4949
- name: Download dependencies
5050
run: go mod download
@@ -57,3 +57,18 @@ jobs:
5757

5858
- name: Test Integration
5959
run: sudo -E env PATH=$PATH go test -v -tags=integration ./...
60+
govuln_check:
61+
name: Check for vulnerabilities
62+
strategy:
63+
matrix:
64+
go-version: [1.20.x, 1.21.x]
65+
platform: [ubuntu-latest]
66+
runs-on: ${{ matrix.platform }}
67+
steps:
68+
- name: Check for vulnerabilities
69+
id: govulncheck
70+
uses: golang/govulncheck-action@7da72f730e37eeaad891fcff0a532d27ed737cd4
71+
with:
72+
cache: false
73+
go-version-input: ${{ matrix.go-version }}
74+
go-package: ./...

.github/workflows/govulncheck.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)