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 organization-managed access tokens #67

Merged
merged 4 commits into from
Jan 15, 2024
Merged

Use organization-managed access tokens #67

merged 4 commits into from
Jan 15, 2024

Conversation

Zeitsperre
Copy link
Collaborator

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
    • This PR fixes #xyz
  • (If applicable) Documentation has been added / updated (for bug fixes / features).
  • (If applicable) Tests have been added.
  • CHANGES.rst has been updated (with summary of main changes).
    • Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

  • Updates Workflows to use Organization-scoped Access Tokens
  • Updates workflow permissions to be very explicit (easier to understand what access is being used/asked for by each)

Does this PR introduce a breaking change?

No.

Other information:

The ACTIONS_VERSIONS_UPDATER_TOKEN and the BUMP_VERSION_TOKEN are Organization-scoped (Hydrologie) personal access tokens with the following permissions for repositories xhydro, xdatasets and xhydro-testdata:

ACTIONS_VERSIONS_UPDATER_TOKEN:

  • Contents: Read and Write
  • Metadata: Read-Only
  • Pull Requests: Read and Write
  • Workflows: Read and Write

BUMP_VERSION_TOKEN:

  • Contents: Read and Write
  • Metadata: Read-Only
  • Pull Requests: Read and Write

Both are set to expire on January 1st, 2025. After this point, anyone with maintainer access can generate new tokens and ask the Hydrologie admins to update the tokens so that workflows continue operating as normal.

For more information: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

@Zeitsperre Zeitsperre self-assigned this Jan 15, 2024
@Zeitsperre Zeitsperre merged commit 615322e into main Jan 15, 2024
12 checks passed
@Zeitsperre Zeitsperre deleted the update-PATs branch January 15, 2024 22:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants