Skip to content

Commit 15245df

Browse files
committed
Bump GitHub workflows
1 parent fb4b75a commit 15245df

9 files changed

Lines changed: 72 additions & 71 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,25 @@ jobs:
2828

2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232

3333
# Install the cosign tool except on PR
3434
# https://github.com/sigstore/cosign-installer
3535
- name: Install cosign
3636
if: github.event_name != 'pull_request'
37-
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
38-
with:
39-
cosign-release: 'v2.2.4'
37+
uses: sigstore/cosign-installer@ba7bc0a3fef59531c69a25acd34668d6d3fe6f22 #v4.1.0
4038

4139
# Set up BuildKit Docker container builder to be able to build
4240
# multi-platform images and export cache
4341
# https://github.com/docker/setup-buildx-action
4442
- name: Set up Docker Buildx
45-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
43+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
4644

4745
# Login against a Docker registry except on PR
4846
# https://github.com/docker/login-action
4947
- name: Log into registry ${{ env.REGISTRY }}
5048
if: github.event_name != 'pull_request'
51-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
49+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
5250
with:
5351
registry: ${{ env.REGISTRY }}
5452
username: ${{ github.actor }}
@@ -58,7 +56,7 @@ jobs:
5856
# https://github.com/docker/metadata-action
5957
- name: Extract Docker metadata
6058
id: meta
61-
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
59+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
6260
with:
6361
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6462

@@ -69,7 +67,7 @@ jobs:
6967
# https://github.com/docker/build-push-action
7068
- name: Build and push Docker image
7169
id: build-and-push
72-
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
70+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
7371
with:
7472
context: .
7573
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone the code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v6
1717
with:
1818
go-version-file: go.mod
1919

2020
- name: Run golangci-lint
21-
uses: golangci/golangci-lint-action@v7
21+
uses: golangci/golangci-lint-action@v9
2222
with:
2323
install-mode: goinstall
24-
version: v2.0.2
24+
version: v2.7.2
2525

2626
- name: Run ShellCheck
2727
uses: ludeeus/action-shellcheck@master

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
- name: Set env
2020
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2121
- name: checkout code
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
22+
uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 0
2525
ref: ${{ env.RELEASE_TAG }}
2626
- name: Set up Go
27-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
27+
uses: actions/setup-go@v6
2828
with:
2929
go-version-file: go.mod
3030
- name: generate release artifacts
3131
env:
3232
IMG: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE_TAG }}
3333
run: make release
3434
- name: Release
35-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # tag=v2.2.2
35+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # tag=v2.6.1
3636
with:
3737
prerelease: true
3838
generate_release_notes: true

.github/workflows/test-e2e.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@ on:
55
branches: [ "main", "release-*" ]
66
workflow_dispatch:
77

8+
concurrency:
9+
group: test-e2e
10+
cancel-in-progress: false
11+
812
jobs:
913
test-e2e:
1014
name: Run on Ubuntu
1115
runs-on: ubuntu-latest
12-
timeout-minutes: 40
1316
steps:
1417
- name: Clone the code
15-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1619

1720
- name: Setup Go
18-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
1922
with:
2023
go-version-file: go.mod
2124

2225
- name: Install the latest version of kind
2326
run: |
24-
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
27+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-$(go env GOARCH)
2528
chmod +x ./kind
2629
sudo mv ./kind /usr/local/bin/kind
2730

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone the code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v6
1717
with:
1818
go-version-file: go.mod
1919

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.18.0
225225
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
226226
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
227227
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
228-
GOLANGCI_LINT_VERSION ?= v2.1.0
228+
GOLANGCI_LINT_VERSION ?= v2.7.2
229229
NILAWAY_VERSION ?= latest
230230
MOCKGEN_VERSION ?= v0.6.0
231231
ENVSUBST_VERSION ?=latest

internal/service/scaleway/instance/instance_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func TestService_Reconcile(t *testing.T) {
444444
},
445445
objects: []runtime.Object{},
446446
expect: func(i *mock_client.MockInterfaceMockRecorder) {
447-
clusterTags := []string{"caps-namespace=default", "caps-scalewaycluster=cluster"}
447+
clusterTags := []string{"caps-namespace=default", "caps-scalewaycluster=cluster"} //nolint:prealloc
448448
tags := append(clusterTags, "caps-scalewaymachine=machine")
449449

450450
i.GetZoneOrDefault(scw.StringPtr("fr-par-1")).Return(scw.ZoneFrPar1, nil)

0 commit comments

Comments
 (0)