Skip to content

Commit 5ab94c4

Browse files
dolphclaude
andauthored
Modernize CI action versions (#67)
The CodeQL and golangci-lint workflows were pinned to action versions that GitHub has retired: - actions/checkout@v2 (Node 12-based, retired) - github/codeql-action/{init,autobuild,analyze}@v1 (v1 retired by GitHub) - golangci/golangci-lint-action@v2 (from 2021) These jobs were either silently failing or running in degraded mode, producing a false static-analysis signal on every PR. Changes: - Bump actions/checkout to @v6 (matches the existing ci.yml convention). - Bump github/codeql-action/* to @V3 (current stable major). - Bump golangci/golangci-lint-action to @v6. - Pin golangci-lint to v1.62.0. 'version: latest' picks up new linters on every run, which can break unrelated PRs; a fixed version is deterministic and bumped intentionally. - Add actions/setup-go@v6 to the lint workflow, reading the Go version from go.mod so the lint job exercises the same toolchain as the test job. Closes #27 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5184f23 commit 5ab94c4

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v6
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v1
32+
uses: github/codeql-action/init@v3
3333
with:
3434
languages: ${{ matrix.language }}
3535

3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v1
37+
uses: github/codeql-action/autobuild@v3
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v1
40+
uses: github/codeql-action/analyze@v3

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ jobs:
1515
name: lint
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-go@v6
20+
with:
21+
go-version-file: go.mod
22+
cache: true
1923
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v2
24+
uses: golangci/golangci-lint-action@v6
2125
with:
22-
version: latest
26+
version: v1.62.0

0 commit comments

Comments
 (0)