Repository navigation
ci(auto-tag): use GITHUB_TOKEN and dispatch publish instead of a PAT - #25
Merged
Merged
Conversation
The v1.2.1 auto-tag failed at checkout because PAT_TOKEN (created 2025-10-10) expired. The PAT existed only so the pushed tag would trigger the publish workflow, which a GITHUB_TOKEN push doesn't. Push the tag with GITHUB_TOKEN and start publish explicitly with 'gh workflow run publish.yml --ref <tag>' (workflow_dispatch is exempt from that rule; github.ref is still refs/tags/<tag>, so the release step runs). Restrict the job to main, since the default branch is now develop and a bare manual dispatch would otherwise tag develop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #25 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 4 4
Branches 1 1
=========================================
Hits 4 4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The v1.2.1 auto-tag run failed at checkout (
could not read Username for 'https://github.com'):PAT_TOKEN, created 2025-10-10, has expired. It existed only because a tag pushed withGITHUB_TOKENdoesn't trigger the tag-push publish workflow.GITHUB_TOKEN(contents: write)gh workflow run publish.yml --ref <tag>(actions: write).workflow_dispatchis exempt from the no-trigger rule, andgithub.refisrefs/tags/<tag>, so the GitHub Release step still runsmain: the default branch is nowdevelop, so a bare manual dispatch would otherwise tagdeveloppush: tagstriggerTo release v1.2.1 after this reaches
main:gh workflow run auto-tag.yml --ref main(the merge won't touchpackage.json, so auto-tag won't fire on its own). After that,PAT_TOKENcan be deleted.🤖 Generated with Claude Code