Repository navigation
release: interpose some templates - #19822
Merged
Merged
Conversation
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
woodruffw
commented
Jun 12, 2026
| name: Release | ||
| permissions: | ||
| "contents": "write" | ||
| permissions: {} |
Member
Author
There was a problem hiding this comment.
NB: This should be safe to drop, since the one job that does need this permission (for creating a release) has it explicitly.
Member
Author
There was a problem hiding this comment.
I did another pass on this (and had the clanker do one too) and I feel pretty confident in it. But there's only one way to find out!
woodruffw
commented
Jun 12, 2026
| - id: plan | ||
| run: | | ||
| dist ${{ (inputs.tag && inputs.tag != 'dry-run' && format('host --steps=create --tag={0}', inputs.tag)) || 'plan' }} --output-format=json > plan-dist-manifest.json | ||
| dist ${DIST_CMD} --output-format=json > plan-dist-manifest.json |
Member
Author
There was a problem hiding this comment.
NB: Intentionally not shell-quoted so that we properly expand flags.
woodruffw
marked this pull request as ready for review
June 12, 2026 15:35
charliermarsh
approved these changes
Jun 13, 2026
This was referenced Aug 18, 2026
zanieb
added a commit
to astral-sh/ty
that referenced
this pull request
Aug 18, 2026
The release workflow grants `contents: write` by default and embeds release tags in shell commands. Restrict the default token, declare the read access needed by planning, building, and reusable workflows, and preserve the existing publishing permissions. Pass release values through environment variables and quoted argument arrays so they are treated as arguments rather than shell source. Port of astral-sh/uv#19822. Co-authored-by: Zanie Blue <[email protected]>
zanieb
added a commit
to astral-sh/ruff
that referenced
this pull request
Aug 18, 2026
The release workflow grants `contents: write` by default and embeds release tags in shell commands. Restrict the default token, declare the read access needed by planning, building, and reusable workflows, and preserve the existing publishing permissions. Pass release values through environment variables and quoted argument arrays so they are treated as arguments rather than shell source. Port of astral-sh/uv#19822. Co-authored-by: Zanie Blue <[email protected]>
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.
Summary
Removes a few more template injections, drops a blanket permission.
Previously we couldn't address these because they're part of the generated dist workflow, but now that we're committed to it being dirty this is fine.
Test Plan
See what happens in CI.