Skip to content

ci: fix release tag detection and bump GitHub Actions - #145

Open
stokpop wants to merge 3 commits into
cloudfoundry:mainfrom
stokpop:ci-bump-actions
Open

stokpop wants to merge 3 commits into
cloudfoundry:mainfrom
stokpop:ci-bump-actions

Conversation

@stokpop

@stokpop stokpop commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Two changes to the CI workflows:

Fix: draft release gets tag v. increment-tag uses git tag --merged, which finds nothing in a depth-1 checkout, so the draft was named v instead of the next version. The release job now checks out with fetch-depth: 0.

Bump actions that run on the deprecated Node.js 20 runtime (see the annotation on recent runs):

  • actions/checkout v2 -> v7
  • actions/setup-go v3 -> v7
  • github/codeql-action v1 -> v4

setup-go v7 sets GOTOOLCHAIN=local, so go-version is now 1.24.x (was 1.22.x, relying on toolchain download) to match go.mod.

Not changed: golangci-lint-action and 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.6 on top of a published v0.9.5 (with the fork-only token/trigger adjustments).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-tag can find merged version tags.
  • Upgrades checkout and setup-go to v7, and CodeQL actions to v4.
  • Sets Go to 1.24.x to 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

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