Description
create-github-app-token is a GitHub Action that creates an installation access token for a GitHub App, so a workflow can act as that app. You register the app, store its Client ID in a repository variable such as APP_CLIENT_ID, and keep its private key in a repository secret such as APP_PRIVATE_KEY. The README shows how to create a token for the current repository, for every repository in the owner's installation, for several named repositories, for another owner's installation, and for an enterprise installation. You can request specific permissions for the token, but the installation must already have them. A matrix strategy can create tokens for several user or organization accounts. The README also covers using the token with actions/checkout and setting up Git's committer and bot identity for an app. It notes that an installation access token expires after one hour, so long-running jobs need a different approach. It is for teams and developers who automate work in GitHub Actions and need the work to run as a GitHub App.…
Highlights
- Creates GitHub App installation access tokens inside workflows
- Scope tokens to the current repo, an owner's installation or named repos
- Request specific permissions for the token
- Examples for actions/checkout and Git bot identity
- Tokens expire after one hour
Ratings & Reviews
No ratings yet
Be the first to rate Create Github App Token.
People also visit
Actions--access-token
Get rid of personal access tokens (PAT) and credential management, use…
Create Github App Token FAQ
What does this action do?
It creates an installation access token for a GitHub App. A workflow can then use that token to call the GitHub API or check out code as the app.
What do I need to set up first?
Register a GitHub App, store its Client ID in a repository variable such as APP_CLIENT_ID, and store its private key in a repository secret such as APP_PRIVATE_KEY.
How long does a token last?
The README says an installation access token expires after one hour, so long-running processes need an alternative approach, which the README links to.
Can I limit what the token can do?
Yes. You can request specific permissions. The app installation must already have them, or the action returns an error.
What are the best Create Github App Token alternatives?
Popular alternatives to Create Github App Token include Slash Command Dispatch, Gitstream and Github Release Monitor. See all Create Github App Token alternatives












