Skip to content

Release Workflow is missing Read Permissions #1

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

Open
Finwood opened this issue Mar 20, 2025 · 1 comment
Open

Release Workflow is missing Read Permissions #1

Finwood opened this issue Mar 20, 2025 · 1 comment

Comments

@Finwood
Copy link

Finwood commented Mar 20, 2025

For a private repository, the release workflow is missing the contents: read permission:

permissions:
id-token: write

With the added permission, the workflow also works on private repos:

jobs:
  pypi:
    permissions:
      contents: read
      id-token: write

At least for me, but maybe I was missing something... 🤔

@konstin
Copy link
Member

konstin commented Apr 11, 2025

According to https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token, contents: read is already the default permission for github actions, is there anything else you are setting that might cause the workflow to not have read permissions?

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

No branches or pull requests

2 participants