Skip to content

ci: scope release env and OIDC permissions to main#80

Merged
bdraco merged 1 commit into
mainfrom
ci/scope-release-permissions
Jun 22, 2026
Merged

ci: scope release env and OIDC permissions to main#80
bdraco merged 1 commit into
mainfrom
ci/scope-release-permissions

Conversation

@bdraco

@bdraco bdraco commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

The release job held id-token: write, contents: write, and the release environment on every trigger including pull requests, even though it only published on main; this splits it into two jobs so PR runs no longer carry release credentials.

Details

release-dry-run runs on PRs and non-main pushes with only contents: read, no environment and no OIDC, just the python-semantic-release dry run; release runs only on main and keeps the release environment plus write and OIDC permissions scoped to that job, so they never apply to untrusted PR code.

Test plan

  • workflow YAML parses clean
  • dry-run job runs on this PR, publish job stays skipped

@bdraco bdraco marked this pull request as ready for review June 22, 2026 01:46
@bdraco bdraco merged commit b862625 into main Jun 22, 2026
43 checks passed
@bdraco bdraco deleted the ci/scope-release-permissions branch June 22, 2026 01: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