sammcj/GitHub App Token Generator for Actions
Run a GitHub Action as a GitHub App Installation instead of using secrets.GITHUB_TOKEN or a personal access token.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| application_private_key | GitHub Application Private Key value. | yes | — |
| application_id | GitHub Application ID value. | yes | — |
| application_installation_id | GitHub Install Application ID value. | no | — |
| permissions | The permissions to request e.g. issues:read,secrets:write,packages:read. Defaults to all available permissions | no | — |
| org | The GitHub Organisation to get the application installation for, if not specified will use the current repository instead. This is not normally needed as the workflow will be running in the context of a repository / org. | no | — |
| owner | The GitHub Owner to get the application installation for, if not specified will use the current repository instead. This is not normally needed as the workflow will be running in the context of a repository / org. | no | — |
| repo | The GitHub Repository to get the application installation for, if not specified will use the current repository instead (owner must also be specified). This is not normally needed as the workflow will be running in the context of a repository / org. | no | — |
| github_api_base_url | The GitHub API base URL to use, no needed it working within the same GitHub instance as the workflow as it will get picked up from the environment. This not usually needed and is mainly for testing purposes. | no | — |
| token_lifetime | The lifetime of the token in seconds, defaults to 600 (10 minutes). | no | — |
| debug | Enable debug logging. | no | — |
Outputs
| name | description |
|---|---|
| token | A valid token representing the Application that can be used to access what the Application has been scoped to access. |
| expires_at | The date and time when the token will expire (UTC). |
| permissions_requested | The permissions that were requested for the token. |
| permissions_granted | The permissions that were granted for the token. |