Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the release-tag detection fix and GitHub Actions updates.
No open issues 🎉
What changed in this PR
This PR fixes release-tag detection and updates GitHub Actions used for testing, linting, releases, and code scanning.
Changes:
- Fetches full history in the release job so
increment-tagcan find merged version tags. - Upgrades checkout and setup-go to v7, and CodeQL actions to v4.
- Sets Go to
1.24.xto match the module requirement with setup-go’s local toolchain behavior; lint tooling remains unchanged.
| File | Description |
|---|---|
.github/workflows/test-pull-request.yml |
Updates checkout, setup-go, and the Go version for unit tests. |
.github/workflows/lint.yml |
Updates checkout and Go setup without changing lint tooling. |
.github/workflows/create-draft-release.yml |
Enables full-history release checkout and updates actions and Go versions. |
.github/workflows/codeql-analysis.yml |
Updates checkout and all CodeQL steps. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes to the CI workflows:
Fix: draft release gets tag
v.increment-tagusesgit tag --merged, which finds nothing in a depth-1 checkout, so the draft was namedvinstead of the next version. The release job now checks out withfetch-depth: 0.Bump actions that run on the deprecated Node.js 20 runtime (see the annotation on recent runs):
actions/checkoutv2 -> v7actions/setup-gov3 -> v7github/codeql-actionv1 -> v4setup-gov7 setsGOTOOLCHAIN=local, sogo-versionis now1.24.x(was1.22.x, relying on toolchain download) to matchgo.mod.Not changed:
golangci-lint-actionand the golangci-lint version (separate topic, see the lint failures on #138/#141).Tested on a fork: the full Create Draft Release workflow succeeds with these changes and drafts
v0.9.6on top of a publishedv0.9.5(with the fork-only token/trigger adjustments).