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

add Actions-Version-Updater and use organizational Personal Access Tokens #155

Closed
wants to merge 2 commits into from

Conversation

Zeitsperre
Copy link
Collaborator

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
    • This PR fixes #xyz
  • Tests for the changes have been added (for bug fixes / features)
    • (If applicable) Documentation has been added / updated (for bug fixes / features)
  • HISTORY.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 added the enhancement New feature or request label Jan 15, 2024
@Zeitsperre Zeitsperre self-assigned this Jan 15, 2024
@Zeitsperre Zeitsperre deleted the actions-version-updater branch February 29, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants