Skip to content

fix: dispatch the Release pipeline on the tag ref#145

Merged
ThomasK33 merged 1 commit into
mainfrom
fix/release-dispatch-tag-ref
Jun 12, 2026
Merged

fix: dispatch the Release pipeline on the tag ref#145
ThomasK33 merged 1 commit into
mainfrom
fix/release-dispatch-tag-ref

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

Spotted on the first real release (v0.4.2): the Release run dispatched by the release-please workflow was attributed to main, not the tag (https://github.com/coder/agent-tty/actions/runs/27415069958). gh workflow run without --ref attaches the workflow_dispatch event to the default branch.

No artifact-integrity impact: release.yml resolves the tag from its input, checks out the tag explicitly, and validates tag↔package.json and main-ancestry before building — the v0.4.2 run built the right commit. This fix is about attribution and claims: with --ref "$tag" the run attaches to refs/tags/v<version> like the old push: tags flow, the Actions UI shows the tag, and the OIDC token claims behind npm trusted publishing/provenance reference the tag rather than main's current head.

The workflow file version executed at the tag ref is the tag's own copy of release.yml, which always exists since release tags point at merge commits on main.

🤖 Generated with Claude Code

gh workflow run without --ref attaches the workflow_dispatch run to the
default branch, so Release runs showed up attributed to main instead of the
tag (the workflow still checked out and validated the tag — build inputs
were correct). Passing --ref <tag> restores the old push-tag attribution and
makes the OIDC claims behind npm trusted publishing/provenance reference the
tag.

Change-Id: Iacd8b3522f8a72ce903854425744d6815e179be3
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 merged commit 35e3800 into main Jun 12, 2026
11 checks passed
@ThomasK33 ThomasK33 deleted the fix/release-dispatch-tag-ref branch June 12, 2026 12:38
@github-actions github-actions Bot mentioned this pull request Jun 12, 2026
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.

1 participant