https://github.com/suzuki-shunsuke/github-token-action
GitHub Actions to output a GitHub Access Token
https://github.com/suzuki-shunsuke/github-token-action
Last synced: about 1 month ago
JSON representation
GitHub Actions to output a GitHub Access Token
- Host: GitHub
- URL: https://github.com/suzuki-shunsuke/github-token-action
- Owner: suzuki-shunsuke
- License: mit
- Created: 2023-01-24T23:32:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T21:45:16.000Z (about 1 year ago)
- Last Synced: 2024-04-14T10:53:30.003Z (about 1 year ago)
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-token-action
GitHub Actions to output a GitHub Access Token.
[action.yaml](action.yaml)
## Motivation
This action is used for GitHub Actions Reusable Workflows.
Some GitHub Actions Workflows require GitHub Access token, but there are several types of GitHub Access Token.1. Personal Access Token
1. GitHub App's Access Token
1. GitHub Actions' Token `${{github.token}}`This action takes some inputs for them and returns an access token.
## Usage
```yaml
- uses: suzuki-shunsuke/github-token-action@350d7506222e3a0016491abe85b5c4dd475b67d1 # v0.2.1
with:
github_token: ${{secrets.GH_TOKEN}}
github_app_id: ${{secrets.APP_ID}}
github_app_private_key: ${{secrets.APP_PRIVATE_KEY}}
default_github_token: ${{github.token}}
github_app_permissions: >-
{
"contents": "write"
}
github_app_repositories: >-
[
"${{github.event.repository.name}}"
]
```## LICENSE
[MIT](LICENSE)