Skip to content

Commit da07e65

Browse files
committed
ci: modernize GitHub Actions and update workflow dependencies
- Update GitHub Action versions for improved reliability and latest features - Upgrade Trivy vulnerability scanner action to a newer release - Bump golangci-lint GitHub Action to a newer major version - Use the latest setup-go action across workflows Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 4c0c353 commit da07e65

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/bearer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717

1818
- uses: reviewdog/action-setup@v1
1919
with:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

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

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.github/workflows/go.yml

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

2020
- name: Setup go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
2222
with:
2323
go-version-file: go.mod
2424
check-latest: true
2525
- name: Setup golangci-lint
26-
uses: golangci/golangci-lint-action@v7
26+
uses: golangci/golangci-lint-action@v8
2727
with:
2828
version: v2.0
2929
args: --verbose
@@ -42,12 +42,12 @@ jobs:
4242
GOPROXY: https://proxy.golang.org
4343
steps:
4444
- name: Set up Go ${{ matrix.go }}
45-
uses: actions/setup-go@v5
45+
uses: actions/setup-go@v6
4646
with:
4747
go-version: ${{ matrix.go }}
4848

4949
- name: Checkout Code
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v5
5151
with:
5252
ref: ${{ github.ref }}
5353

@@ -71,12 +71,12 @@ jobs:
7171
vulnerability-scanning:
7272
runs-on: ubuntu-latest
7373
steps:
74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v5
7575
with:
7676
fetch-depth: 0
7777

7878
- name: Run Trivy vulnerability scanner in repo mode
79-
uses: aquasecurity/trivy-action@0.28.0
79+
uses: aquasecurity/trivy-action@0.33.1
8080
with:
8181
scan-type: "fs"
8282
ignore-unfixed: true

.github/workflows/goreleaser.yml

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

2020
- name: Setup go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
2222
with:
2323
go-version-file: go.mod
2424
check-latest: true

0 commit comments

Comments
 (0)