Skip to content

ci: Restrict id-token OIDC permission to release job#185

Merged
qartik merged 2 commits into
mainfrom
codex-propose-fix-for-oidc-token-vulnerability
Jun 23, 2026
Merged

ci: Restrict id-token OIDC permission to release job#185
qartik merged 2 commits into
mainfrom
codex-propose-fix-for-oidc-token-vulnerability

Conversation

@qartik

@qartik qartik commented Jun 23, 2026

Copy link
Copy Markdown
Member

Motivation

  • Prevent non-release CI jobs that run checked-out repository build logic from minting GitHub OIDC tokens by removing the workflow-level id-token: write grant.

Description

  • Remove id-token: write from the workflow-level permissions in .github/workflows/build_wheels.yml while leaving the release job's permissions (which include id-token: write) unchanged so the intended publish path retains OIDC capability.

Testing

  • Automated verification printed and inspected .github/workflows/build_wheels.yml, confirmed a single-line removal of the workflow-level id-token and that the release job still contains id-token: write, and all checks passed.

Codex Task

@qartik qartik changed the title Restrict id-token OIDC permission to release job ci: Restrict id-token OIDC permission to release job Jun 23, 2026
@qartik qartik marked this pull request as ready for review June 23, 2026 17:05
@qartik qartik requested a review from jake-arkinstall as a code owner June 23, 2026 17:05
@qartik qartik merged commit 7c00342 into main Jun 23, 2026
10 checks passed
@qartik qartik deleted the codex-propose-fix-for-oidc-token-vulnerability branch June 23, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants