Skip to content

Promote GitHub App usage for token generation - #484

Merged
swalkinshaw merged 1 commit into
mainfrom
feat/github-app
Apr 27, 2022
Merged

Promote GitHub App usage for token generation#484
swalkinshaw merged 1 commit into
mainfrom
feat/github-app

Conversation

@LeoColomb

@LeoColomb LeoColomb commented Apr 27, 2022

Copy link
Copy Markdown
Collaborator

Instead of using a PAT from a GitHub "personal" account, this change leverage GitHub Apps to generate a short-term and permission-limited token.

To achieve this, a (private) GitHub App must be created at the org level (https://github.com/organizations/roots/settings/apps)

  • Enable content permission
  • Install it in the same org, eventually limited to the relevant repositories (this one and the package ones)
  • Generate a app key
  • Create secrets with the app ID and the app Key
@swalkinshaw

Copy link
Copy Markdown
Member

Oh I like this! I never liked how PAT's were required in situations like this.

@swalkinshaw
swalkinshaw merged commit a700127 into main Apr 27, 2022
@swalkinshaw
swalkinshaw deleted the feat/github-app branch April 27, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants