Skip to content

Harden release workflow permissions and shell inputs - #27848

Merged
zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/port-uv-release-hardening
Aug 18, 2026
Merged

zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/port-uv-release-hardening

Conversation

@zaniebot

Copy link
Copy Markdown
Contributor

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.

@zanieb
zanieb marked this pull request as ready for review August 18, 2026 21:39
@zanieb
zanieb merged commit b1c34f0 into astral-sh:main Aug 18, 2026
47 checks passed
@zanieb zanieb added the ci Related to internal CI tooling label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants