github-apps
Installation
SKILL.md
GitHub Apps
A GitHub App is an identity of its own (<app-slug>[bot]) with permissions chosen per App,
installed on chosen repositories. It authenticates with short-lived tokens minted from a private
key, so nothing long-lived belongs to a person.
1. Which credential?
| Need | Use |
|---|---|
| A workflow acting on its own repository | GITHUB_TOKEN, with a permissions: block |
| Acting on another repository, or across an organization | GitHub App installation token |
A push or PR that must start other workflows (GITHUB_TOKEN events don't, except workflow_dispatch and repository_dispatch) |
GitHub App installation token |
| Starting a workflow in another repository | GitHub App with only "Actions: Read and write" on that repository |
| A service, bot or integration that runs outside Actions | GitHub App |
| Acting as a person (their own repos, a one-off script) | Fine-grained personal access token, smallest scope, short expiry |
Prefer an App over a personal access token for anything automated: it isn't tied to a person's account, its permissions are explicit, and its tokens expire after an hour.