Skip to content

Update Go workflow to supported action tags and pin staticcheck - #21

Merged
steiler merged 3 commits into
masterfrom
copilot/update-go-actions-workflow
Sep 10, 2026
Merged

steiler merged 3 commits into
masterfrom
copilot/update-go-actions-workflow

Conversation

Copilot AI commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The Go workflow referenced non-existent @v7 action tags and used staticcheck@latest, which broke CI against the repository’s Go version from go.mod. This change updates the workflow to valid action versions while keeping go-version-file as the source of truth and pinning staticcheck to a compatible release.

  • Workflow action version corrections

    • actions/checkout@v7 → actions/checkout@v4 (both jobs)
    • actions/setup-go@v7 → actions/setup-go@v5 (both jobs)
    • codecov/codecov-action@v7 → codecov/codecov-action@v4
  • Staticcheck stability

    • Replaced floating install with a pinned version:
      - name: Staticcheck
        run: |
          go install honnef.co/go/tools/cmd/staticcheck@2026.1
          staticcheck ./...
  • Go version source of truth preserved

    • Kept go-version-file: 'go.mod' unchanged in both jobs (no hardcoded go-version, no go.mod edits).

Co-authored-by: steiler <1122166+steiler@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub Actions workflow for Go Update Go workflow to supported action tags and pin staticcheck Sep 10, 2026
Copilot AI requested a review from steiler September 10, 2026 06:07
Co-authored-by: steiler <1122166+steiler@users.noreply.github.com>
@steiler
steiler marked this pull request as ready for review September 10, 2026 06:11
@steiler
steiler merged commit 93383c1 into master Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants