Skip to content

Commit 18b5d56

Browse files
committed
update GH actions
Updates the Go versions and Github Actions used in our workflows. Signed-off-by: Jay Pipes <jaypipes@gmail.com>
1 parent ab608e5 commit 18b5d56

File tree

3 files changed

+27
-72
lines changed

3 files changed

+27
-72
lines changed

.github/workflows/fmtcheck.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: harden runner
17-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
17+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
1818
with:
1919
egress-policy: block
2020
disable-sudo: true
@@ -27,10 +27,10 @@ jobs:
2727
objects.hdec.top:443
2828
proxy.golang.org:443
2929
- name: checkout code
30-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
- name: setup go
32-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
32+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3333
with:
34-
go-version: 1.23
34+
go-version: 1.24
3535
- name: check fmt
3636
run: 'bash -c "diff -u <(echo -n) <(gofmt -d .)"'

.github/workflows/lint.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,19 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: harden runner
18-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
18+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
1919
with:
20-
egress-policy: block
20+
egress-policy: audit
2121
disable-sudo: true
22-
allowed-endpoints: >
23-
github.com:443
24-
api.github.com:443
25-
proxy.github.com:443
26-
proxy.golang.org:443
27-
raw.githubusercontent.com:443
28-
objects.hdec.top:443
29-
proxy.golang.org:443
3022
- name: checkout code
31-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3224
- name: setup go
33-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
25+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3426
with:
35-
go-version: 1.23
27+
go-version: 1.24
3628
- name: lint
37-
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
29+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3830
with:
39-
version: v1.61.0
31+
version: v2.2.0
4032
args: --timeout=5m0s --verbose
4133
only-new-issues: true

.github/workflows/test.yml

Lines changed: 16 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
go: [ '1.21', '1.22', '1.23']
20+
go: ['1.22', '1.23', '1.24']
2121
steps:
2222
- name: harden runner
23-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
23+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
2424
with:
2525
egress-policy: block
2626
disable-sudo: true
@@ -33,9 +33,9 @@ jobs:
3333
objects.hdec.top:443
3434
proxy.golang.org:443
3535
- name: checkout code
36-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
- name: setup go
38-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
38+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3939
with:
4040
go-version: ${{ matrix.go }}
4141
- name: run tests
@@ -48,10 +48,10 @@ jobs:
4848
runs-on: ubuntu-22.04
4949
strategy:
5050
matrix:
51-
go: [ '1.21', '1.22', '1.23']
51+
go: ['1.21', '1.22', '1.23']
5252
steps:
5353
- name: harden runner
54-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
54+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
5555
with:
5656
egress-policy: block
5757
disable-sudo: true
@@ -64,9 +64,9 @@ jobs:
6464
objects.hdec.top:443
6565
proxy.golang.org:443
6666
- name: checkout code
67-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
67+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6868
- name: setup go
69-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
69+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
7070
with:
7171
go-version: ${{ matrix.go }}
7272
- name: run tests
@@ -79,10 +79,10 @@ jobs:
7979
runs-on: windows-2022
8080
strategy:
8181
matrix:
82-
go: [ '1.22', '1.23' ]
82+
go: ['1.23', '1.24', '1.24']
8383
steps:
8484
- name: harden runner
85-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
85+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
8686
with:
8787
egress-policy: block
8888
disable-sudo: true
@@ -95,46 +95,9 @@ jobs:
9595
objects.hdec.top:443
9696
proxy.golang.org:443
9797
- name: checkout code
98-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
98+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9999
- name: setup go
100-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
101-
with:
102-
go-version: ${{ matrix.go }}
103-
- name: run tests
104-
env:
105-
GHW_TESTING_SKIP_BLOCK: "1"
106-
GHW_TESTING_SKIP_GPU: "1"
107-
GHW_TESTING_SKIP_CPU: "1"
108-
GHW_TESTING_SKIP_MEMORY: "1"
109-
GHW_TESTING_SKIP_HOST: "1"
110-
GHW_TESTING_SKIP_NET: "1"
111-
GHW_TESTING_SKIP_PCI: "1"
112-
GHW_TESTING_SKIP_TOPOLOGY: "1"
113-
run: go test -v ./...
114-
115-
windows-2019:
116-
runs-on: windows-2019
117-
strategy:
118-
matrix:
119-
go: [ '1.21', '1.22' ]
120-
steps:
121-
- name: harden runner
122-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
123-
with:
124-
egress-policy: block
125-
disable-sudo: true
126-
allowed-endpoints: >
127-
github.com:443
128-
api.github.com:443
129-
proxy.github.com:443
130-
proxy.golang.org:443
131-
raw.githubusercontent.com:443
132-
objects.hdec.top:443
133-
proxy.golang.org:443
134-
- name: checkout code
135-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
136-
- name: setup go
137-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
100+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
138101
with:
139102
go-version: ${{ matrix.go }}
140103
- name: run tests
@@ -160,10 +123,10 @@ jobs:
160123
runs-on: macos-13
161124
strategy:
162125
matrix:
163-
go: [ '1.21' ]
126+
go: ['1.22', '1.23']
164127
steps:
165128
- name: harden runner
166-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
129+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
167130
with:
168131
egress-policy: block
169132
disable-sudo: true
@@ -176,9 +139,9 @@ jobs:
176139
objects.hdec.top:443
177140
proxy.golang.org:443
178141
- name: checkout code
179-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
142+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
180143
- name: setup go
181-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
144+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
182145
with:
183146
go-version: ${{ matrix.go }}
184147
- name: run tests

0 commit comments

Comments
 (0)