Generate an installation access token for personal use.
Important
This action is designed for personal use only. Please refrain from using it in your projects.
This action generates an installation access token using GitHub Apps for GitHub Actions. It retrieves credentials for GitHub Apps from HCP Vault Secrets. Parameters for accessing HCP Vault Secrets are extracted from the labels of private images stored in the GitHub Container Registry. This approach simplifies credential management across repositories and automates the generation of GitHub Apps tokens.
steps:
- name: Private Generate GitHub Token
uses: tmknom/private-generate-github-token-action@v0
with:
repositories: foo-repo
Name | Description | Default | Required |
---|---|---|---|
repositories | A space-separated list of repositories to install the GitHub App on. | n/a | no |
Name | Description |
---|---|
token | GitHub installation access token. |
Scope | Access |
---|---|
packages | read |
id-token | write |
N/A
- generate-github-token-action: Generate an installation access token using GitHub Apps for GitHub Actions.
- revoke-github-token-action: Revoke an installation access token using GitHub Apps for GitHub Actions.
See GitHub Releases.