Skip to content
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

Merged
merged 1 commit into from Apr 6, 2021
Merged

Use GITHUB_TOKEN more consistently. #11043

merged 1 commit into from Apr 6, 2021

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Apr 6, 2021

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.

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Apr 6, 2021
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

BrewTestBot
BrewTestBot previously approved these changes Apr 6, 2021
BrewTestBot
BrewTestBot previously approved these changes Apr 6, 2021
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.
@MikeMcQuaid MikeMcQuaid merged commit fcb9e7f into master Apr 6, 2021
@MikeMcQuaid MikeMcQuaid deleted the tokens_cleanup branch April 6, 2021 12:03
repo-token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
repo-token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
Copy link
Member

@Bo98 Bo98 Apr 6, 2021

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.

Copy link
Member Author

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

@github-actions github-actions bot added the outdated PR was locked due to age label May 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants