Skip to content

ci: stop pushing the rolling v1 tag from release.yml#1837

Merged
BartWaardenburg merged 1 commit into
mainfrom
ci/remove-in-workflow-v1-push
Jul 13, 2026
Merged

ci: stop pushing the rolling v1 tag from release.yml#1837
BartWaardenburg merged 1 commit into
mainfrom
ci/remove-in-workflow-v1-push

Conversation

@BartWaardenburg

Copy link
Copy Markdown
Collaborator

The v3.4.2 run failed its Create Release job on the final "Update stable action tags" step: GitHub rejects a GITHUB_TOKEN-authenticated ref update whose diff modifies .github/workflows/, and the workflows permission cannot be granted to that token at all. The step therefore only worked on releases where no workflow file had changed since v1's last position, and because it sat upstream of npm-publish, vscode-publish, and docker-lockstep in the needs graph, its failure produced a partial publish (crates.io out, npm and marketplace skipped).

The step is removed with an explanatory comment; the rolling v1/v3 tags are pushed by the maintainer release flow, whose credentials carry the workflow scope. The release-workflow boundary doc's persist-credentials note is updated to match.

actionlint clean, YAML parses, zizmor identical to baseline (0 new findings).

GITHUB_TOKEN can never update a ref whose diff touches
.github/workflows/ (the workflows permission is not grantable to it),
so the in-workflow v1 push failed on the first release after any
workflow edit (v3.4.2), and because it sat upstream of the publish
jobs it turned a cosmetic step into a partial publish. The rolling
v1/v3 tags are pushed by the maintainer release flow instead.
@BartWaardenburg BartWaardenburg merged commit 00b4970 into main Jul 13, 2026
6 of 7 checks passed
@BartWaardenburg BartWaardenburg deleted the ci/remove-in-workflow-v1-push branch July 13, 2026 12:47
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