Skip to content

Commit 8dd7b7e

Browse files
committed
ci: update GitHub Actions configurations
- Update CodeQL action to version 3 in `.github/workflows/codeql.yml` - Add step to checkout repository with fetch-depth 0 in `.github/workflows/go.yml` - Update golangci-lint action to version 4 in `.github/workflows/go.yml` Signed-off-by: appleboy <[email protected]>
1 parent c6e7905 commit 8dd7b7e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -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@v2
54+
uses: github/codeql-action/analyze@v3

.github/workflows/go.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
1520
- name: Setup go
1621
uses: actions/setup-go@v5
1722
with:
18-
go-version: "^1"
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
23+
go-version-file: go.mod
24+
check-latest: true
2125
- name: Setup golangci-lint
22-
uses: golangci/golangci-lint-action@v3
26+
uses: golangci/golangci-lint-action@v4
2327
with:
2428
version: latest
2529
args: --verbose

0 commit comments

Comments
 (0)