Skip to content

Commit d577efb

Browse files
committed
chore(ci): bump GitHub Actions to latest major versions
- Upgrade actions/checkout and actions/setup-go to v6 - Upgrade codecov-action to v6 and docker/* actions to latest majors - Bump github/codeql-action jobs to v4 and goreleaser-action to v7
1 parent e7eecaa commit d577efb

4 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
45+
uses: github/codeql-action/init@v4
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -51,4 +51,4 @@ jobs:
5151
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

5353
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@v3
54+
uses: github/codeql-action/analyze@v4

.github/workflows/docker.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Setup go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true
@@ -28,27 +28,27 @@ jobs:
2828
make build_linux_arm
2929
make build_linux_arm64
3030
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v3
31+
uses: docker/setup-qemu-action@v4
3232

3333
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@v3
34+
uses: docker/setup-buildx-action@v4
3535

3636
- name: Login to Docker Hub
37-
uses: docker/login-action@v3
37+
uses: docker/login-action@v4
3838
with:
3939
username: ${{ secrets.DOCKERHUB_USERNAME }}
4040
password: ${{ secrets.DOCKERHUB_TOKEN }}
4141

4242
- name: Login to GitHub Container Registry
43-
uses: docker/login-action@v3
43+
uses: docker/login-action@v4
4444
with:
4545
registry: ghcr.io
4646
username: ${{ github.repository_owner }}
4747
password: ${{ secrets.GITHUB_TOKEN }}
4848

4949
- name: Docker meta
5050
id: docker-meta
51-
uses: docker/metadata-action@v5
51+
uses: docker/metadata-action@v6
5252
with:
5353
images: |
5454
${{ github.repository }}
@@ -64,7 +64,7 @@ jobs:
6464
echo "REPO=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
6565
6666
- name: Build Docker image for scanning
67-
uses: docker/build-push-action@v6
67+
uses: docker/build-push-action@v7
6868
with:
6969
context: .
7070
platforms: linux/amd64
@@ -83,12 +83,12 @@ jobs:
8383
severity: "CRITICAL,HIGH,MEDIUM"
8484

8585
- name: Upload Trivy scan results to GitHub Security tab
86-
uses: github/codeql-action/upload-sarif@v3
86+
uses: github/codeql-action/upload-sarif@v4
8787
with:
8888
sarif_file: "trivy-docker-results.sarif"
8989

9090
- name: Build and push
91-
uses: docker/build-push-action@v6
91+
uses: docker/build-push-action@v7
9292
with:
9393
context: .
9494
platforms: linux/amd64,linux/arm,linux/arm64

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 0
1919

2020
- name: Setup go
2121
id: setup-go
22-
uses: actions/setup-go@v5
22+
uses: actions/setup-go@v6
2323
with:
2424
go-version-file: go.mod
2525
check-latest: true
2626

2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v6
28+
uses: goreleaser/goreleaser-action@v7
2929
with:
3030
# either 'goreleaser' (default) or 'goreleaser-pro'
3131
distribution: goreleaser

.github/workflows/testing.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v6
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Setup go
31-
uses: actions/setup-go@v5
31+
uses: actions/setup-go@v6
3232
with:
3333
go-version: ${{ matrix.go }}
3434

@@ -49,12 +49,12 @@ jobs:
4949
runs-on: ${{ matrix.os }}
5050
steps:
5151
- name: Set up Go ${{ matrix.go }}
52-
uses: actions/setup-go@v5
52+
uses: actions/setup-go@v6
5353
with:
5454
go-version: ${{ matrix.go }}
5555

5656
- name: Checkout Code
57-
uses: actions/checkout@v5
57+
uses: actions/checkout@v6
5858
with:
5959
ref: ${{ github.ref }}
6060

@@ -71,14 +71,14 @@ jobs:
7171
make test
7272
7373
- name: Upload coverage to Codecov
74-
uses: codecov/codecov-action@v5
74+
uses: codecov/codecov-action@v6
7575
with:
7676
flags: ${{ matrix.os }},go-${{ matrix.go }}
7777

7878
commitlint:
7979
runs-on: ubuntu-latest
8080
steps:
81-
- uses: actions/checkout@v5
81+
- uses: actions/checkout@v6
8282
with:
8383
fetch-depth: 0
8484
- uses: wagoid/commitlint-github-action@v5
@@ -92,7 +92,7 @@ jobs:
9292
# To report GitHub Actions status checks
9393
statuses: write
9494
steps:
95-
- uses: actions/checkout@v5
95+
- uses: actions/checkout@v6
9696
with:
9797
# super-linter needs the full git history to get the
9898
# list of files that changed across commits

0 commit comments

Comments
 (0)