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
Use GITHUB_TOKEN more consistently. #11043
Conversation
Review period skipped due to |
bde0263
to
3777a96
Compare
https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token This provides enough permissions for almost everything we want to do. When it's not enough (e.g. for `brew update-maintainers`): generate a dedicated, repo-specific token for when increased scopes are needed and setup a new organisation-wide token on the new PAT format.
3777a96
to
d837d5c
Compare
repo-token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} | ||
repo-token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }} |
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.
# This file is synced from the '.github' repository, do not modify it directly.
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.
Oops, addressing in Homebrew/.github#14
https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
This provides enough permissions for almost everything we want to do.
When it's not enough (e.g. for
brew update-maintainers
): generate a dedicated, repo-specific token for when increased scopes are needed and setup a new organisation-wide token on the new PAT format.This may well break things. If so: please do not revert this PR but specifically revert the workflow(s) token changes that are failing.