Skip to content

Commit 0fb5d29

Browse files
committed
ci: upgrade GitHub Actions workflows to latest major versions
- Update GitHub Actions to use the latest major versions for checkout, setup-go, codeql, golangci-lint, and cache steps Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 2eb233c commit 0fb5d29

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/codeql.yaml

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

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
4141

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

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

.github/workflows/go.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout repository
9-
uses: actions/checkout@v4
9+
uses: actions/checkout@v6
1010
with:
1111
fetch-depth: 0
1212

1313
- name: Setup go
14-
uses: actions/setup-go@v5
14+
uses: actions/setup-go@v6
1515
with:
1616
go-version-file: go.mod
1717
check-latest: true
1818
- name: Setup golangci-lint
19-
uses: golangci/golangci-lint-action@v8
19+
uses: golangci/golangci-lint-action@v9
2020
with:
2121
version: v2.1
2222

@@ -37,16 +37,16 @@ jobs:
3737

3838
steps:
3939
- name: Set up Go ${{ matrix.go }}
40-
uses: actions/setup-go@v5
40+
uses: actions/setup-go@v6
4141
with:
4242
go-version: ${{ matrix.go }}
4343

4444
- name: Checkout Code
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646
with:
4747
ref: ${{ github.ref }}
4848

49-
- uses: actions/cache@v4
49+
- uses: actions/cache@v5
5050
with:
5151
path: |
5252
~/go/pkg/mod # Module download cache

.github/workflows/goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 0
1919
- name: Set up 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

0 commit comments

Comments
 (0)