Skip to content

fix: use RELEASE_TOKEN in auto-tag workflow#37

Merged
mikkeldamsgaard merged 3 commits intomainfrom
fix/auto-tag-release-token
Mar 12, 2026
Merged

fix: use RELEASE_TOKEN in auto-tag workflow#37
mikkeldamsgaard merged 3 commits intomainfrom
fix/auto-tag-release-token

Conversation

@mikkeldamsgaard
Copy link
Contributor

Summary

  • Tags pushed by the default GITHUB_TOKEN do not trigger other workflows (GitHub Actions security feature to prevent infinite loops)
  • This caused the Auto Tag workflow's v1.3.0 tag push to silently not trigger the Release workflow
  • Switch to RELEASE_TOKEN (PAT or GitHub App token) in both actions/checkout and the tag push step

Prerequisites

  • A RELEASE_TOKEN repo secret must be created with contents: write scope (PAT or GitHub App token)

Test plan

  • Add RELEASE_TOKEN secret to repo settings
  • Merge this PR
  • Delete and re-push v1.3.0 tag to trigger release, or wait for next version bump

🤖 Generated with Claude Code

Tags pushed with the default GITHUB_TOKEN do not trigger other workflows
(GitHub Actions security feature). Switch to RELEASE_TOKEN (PAT or App
token) so the v* tag push triggers the Release workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 12, 2026 12:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Auto Tag GitHub Actions workflow to authenticate with a non-default token so that tag pushes can trigger the Release workflow (since tags pushed via the default GITHUB_TOKEN don’t trigger other workflows).

Changes:

  • Switch actions/checkout in the Auto Tag workflow to use secrets.RELEASE_TOKEN.
  • Use secrets.RELEASE_TOKEN in the tag-push step environment (instead of secrets.GITHUB_TOKEN).
  • Document the workflow change in the changelog under Unreleased → Fixed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
CHANGELOG.md Documents the workflow auth fix and rationale under the Unreleased section.
.github/workflows/auto-tag.yml Uses RELEASE_TOKEN for checkout (and attempts to apply it to tag push) to ensure tag pushes trigger downstream workflows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mikkeldamsgaard and others added 2 commits March 12, 2026 14:20
Address review feedback:
- Fail fast with a clear error if RELEASE_TOKEN secret is not configured
- Remove unused GITHUB_TOKEN env var from tag push step (git push
  already uses credentials from actions/checkout with persist-credentials)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mikkeldamsgaard mikkeldamsgaard merged commit 850ec02 into main Mar 12, 2026
6 checks passed
@mikkeldamsgaard mikkeldamsgaard deleted the fix/auto-tag-release-token branch March 12, 2026 13:53
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