Skip to content

Commit 83d7d5b

Browse files
committed
chore: update action versions
1 parent b1e1ca4 commit 83d7d5b

5 files changed

Lines changed: 29 additions & 45 deletions

File tree

.github/workflows/checks.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ permissions:
1111
pull-requests: read
1212
env:
1313
CGO_ENABLED: 0
14-
GOLANGCI_LINT_VERSION: v2.9.0
15-
SHELLCHECK_SCRIPTS: ./*.sh
14+
GOLANGCI_LINT_VERSION: v2.12
1615
jobs:
1716
go-lint-checks:
1817
runs-on: ubuntu-latest
1918
steps:
20-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2120
- uses: actions/setup-go@v6
2221
with:
2322
go-version-file: go.mod
@@ -28,15 +27,12 @@ jobs:
2827
go-mod-checks:
2928
runs-on: ubuntu-latest
3029
steps:
31-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@v6
3231
- uses: actions/setup-go@v6
3332
with:
3433
go-version-file: go.mod
3534
- name: Check if go.mod is tidy
36-
run: |
37-
go mod tidy
38-
git diff --exit-code go.mod go.sum ||
39-
(echo "::error::go.mod and go.sum need to be tidy" && exit 1)
35+
run: go mod tidy --diff
4036
- name: Check if vendor directory is up to date
4137
run: |
4238
go mod vendor

.github/workflows/go-cross.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- windows-latest
2626
steps:
2727
- name: Checkout code
28-
uses: actions/checkout@v5
28+
uses: actions/checkout@v6
2929
- name: Set up Go
3030
uses: actions/setup-go@v6
3131
with:

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- linux
3333
- windows
3434
steps:
35-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@v6
3636
- uses: actions/setup-go@v6
3737
with:
3838
check-latest: true
@@ -48,7 +48,7 @@ jobs:
4848
- name: Display ${{ matrix.app }} artifacts
4949
run: tree /tmp/dist
5050
- name: Store ${{ matrix.app }} artifacts
51-
uses: actions/upload-artifact@v4
51+
uses: actions/upload-artifact@v7
5252
with:
5353
name: ${{ matrix.app }}-${{ matrix.go-os }}-${{ matrix.go-arch }}
5454
path: /tmp/dist
@@ -64,9 +64,9 @@ jobs:
6464
- app: pebble-challtestsrv
6565
expose_ports: "5001 5002 5003 8053 8055 8443"
6666
steps:
67-
- uses: actions/checkout@v5
67+
- uses: actions/checkout@v6
6868
- name: Download ${{ matrix.app }} artifacts
69-
uses: actions/download-artifact@v4
69+
uses: actions/download-artifact@v8
7070
with:
7171
merge-multiple: true
7272
path: /tmp/dist
@@ -75,7 +75,7 @@ jobs:
7575
run: tree /tmp/dist
7676
- name: Docker meta
7777
id: meta
78-
uses: docker/metadata-action@v5
78+
uses: docker/metadata-action@v6
7979
with:
8080
images: ${{ env.DOCKER_IMAGE_BASENAME }}/${{ matrix.app }}
8181
# generate Docker tags based on the following events/attributes
@@ -86,9 +86,9 @@ jobs:
8686
type=sha
8787
type=raw,value=latest
8888
- name: Set up QEMU
89-
uses: docker/setup-qemu-action@v3
89+
uses: docker/setup-qemu-action@v4
9090
- name: Set up Docker Buildx
91-
uses: docker/setup-buildx-action@v3
91+
uses: docker/setup-buildx-action@v4
9292
- name: Login to GitHub Container Registry
9393
run: printenv GITHUB_TOKEN | docker login -u "$GITHUB_ACTOR" --password-stdin ghcr.io
9494
env:
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: ubuntu-latest
132132
steps:
133133
- name: Download build artifacts
134-
uses: actions/download-artifact@v4
134+
uses: actions/download-artifact@v8
135135
- name: Display build artifacts
136136
run: tree .
137137
- name: Create release

.github/workflows/tests.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
echo "127.0.0.1 elpmaxe.letsencrypt.org" | sudo tee -a /etc/hosts
1919
# https://github.com/marketplace/actions/checkout
2020
- name: Check out code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
# https://github.com/marketplace/actions/setup-go-environment
2323
- name: Set up Go
24-
uses: actions/setup-go@v5
24+
uses: actions/setup-go@v6
2525
with:
2626
go-version-file: go.mod
2727
- name: Install packages
@@ -42,9 +42,9 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Check out code
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646
- name: Set up Go
47-
uses: actions/setup-go@v5
47+
uses: actions/setup-go@v6
4848
with:
4949
go-version-file: go.mod
5050
- name: go install commands
@@ -63,12 +63,12 @@ jobs:
6363
name: Test lego with EAB
6464
runs-on: ubuntu-latest
6565
steps:
66-
- uses: actions/checkout@v4
67-
- uses: actions/setup-go@v5
66+
- uses: actions/checkout@v6
67+
- uses: actions/setup-go@v6
6868
with:
69-
go-version-file: go.mod
69+
go-version: stable
7070
- name: Install lego cli
71-
run: go install github.com/go-acme/lego/v4/cmd/lego@latest
71+
run: go install github.com/go-acme/lego/v5@latest
7272
- name: go install commands
7373
run: go install -v ./cmd/...
7474
- name: launch pebble
@@ -77,21 +77,20 @@ jobs:
7777
pebble -config test/config/pebble-config-external-account-bindings.json &
7878
- run: |
7979
LEGO_CA_CERTIFICATES=./test/certs/pebble.minica.pem \
80-
lego --accept-tos \
80+
lego run \
81+
--accept-tos \
8182
--server=https://localhost:14000/dir \
82-
--email="pebble-test@example.letsencrypt.org" \
8383
--domains=example.letsencrypt.org \
8484
--eab \
85-
--kid kid-3 \
86-
--hmac=HjudV5qnbreN-n9WyFSH-t4HXuEx_XFen45zuxY-G1h6fr74V3cUM_dVlwQZBWmc \
87-
--http --http.port=:5002 \
88-
run
85+
--eab.kid kid-3 \
86+
--eab.hmac=HjudV5qnbreN-n9WyFSH-t4HXuEx_XFen45zuxY-G1h6fr74V3cUM_dVlwQZBWmc \
87+
--http --http.address=:5002
8988
go-linux:
9089
name: Run Go tests on Linux
9190
runs-on: ubuntu-latest
9291
steps:
9392
- name: Check out code
94-
uses: actions/checkout@v4
93+
uses: actions/checkout@v6
9594
# Run project unit tests (with the race detector enabled and atomic coverage profile collection)
9695
- name: unittests
9796
run: go test -v -race -covermode=atomic -coverprofile=profile.cov ./...

.golangci.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ linters:
2121
- gocyclo
2222
- goheader
2323
- gomoddirectives
24-
- gomodguard
2524
- goprintffuncname
2625
- importas
2726
- inamedparam
@@ -51,12 +50,12 @@ linters:
5150
min-complexity: 25
5251
misspell:
5352
locale: US
53+
goconst:
54+
ignore-tests: true
5455
exclusions:
55-
generated: lax
5656
presets:
5757
- comments
5858
- common-false-positives
59-
- legacy
6059
- std-error-handling
6160
rules:
6261
- path: ca/ca.go
@@ -71,10 +70,6 @@ linters:
7170
text: string `Incorrect validation certificate for %s challenge. ` has \d occurrences, make it a constant
7271
- path: (.+)\.go$
7372
text: fmt.Sprintf can be replaced with string
74-
paths:
75-
- third_party$
76-
- builtin$
77-
- examples$
7873
issues:
7974
max-issues-per-linter: 0
8075
max-same-issues: 0
@@ -83,9 +78,3 @@ formatters:
8378
- gofmt
8479
- gofumpt
8580
- goimports
86-
exclusions:
87-
generated: lax
88-
paths:
89-
- third_party$
90-
- builtin$
91-
- examples$

0 commit comments

Comments
 (0)