Skip to content

Auth within an organization? #26759

Discussion options

You must be logged in to vote

One way is to create a GitHub app for this. It can be

  • hidden (visible only within the org),
  • have access to all repos in the org or only selected ones,
  • have restricted access permissions

You would need to store a private key for this app as an org secret and use it in workflows to generate a short-lived token. Any operations made with this token will be on behalf of that app/bot because it has its own identity on GitHub.

It’s more involved to set up than using a PAT, but it definitely provides much more control and security.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants