-
Notifications
You must be signed in to change notification settings - Fork 332
ci(release): add the 'id-token' permissions #948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ jobs: | |
|
|
||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
|
||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6.0.1 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
id-token: writepermission is typically used for PyPI trusted publishing with OIDC tokens, Sigstore signing, or authentication with cloud providers. Based on the workflow steps, none of these features appear to be in use:Adding this permission increases the attack surface without apparent benefit. Could you clarify which specific step in this workflow requires the id-token permission? If it's not actively being used, consider removing it to follow the principle of least privilege.
If the documentation recommends this for future features or specific configurations, please verify that those features are actually enabled in your releaserc.toml configuration.