https://github.com/mercari/github-app-token-generator
A simple github action written in go to retrieve an installation access token for an app installed into an organization.
https://github.com/mercari/github-app-token-generator
github-actions github-app github-token
Last synced: 29 days ago
JSON representation
A simple github action written in go to retrieve an installation access token for an app installed into an organization.
- Host: GitHub
- URL: https://github.com/mercari/github-app-token-generator
- Owner: mercari
- License: mit
- Created: 2022-02-07T07:10:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T05:49:18.000Z (over 1 year ago)
- Last Synced: 2025-05-04T11:05:27.327Z (about 1 month ago)
- Topics: github-actions, github-app, github-token
- Language: Go
- Homepage: https://github.com/marketplace/actions/github-app-access-token-generator
- Size: 9.77 KB
- Stars: 15
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub App Token Generator
## Description
> A simple github action written in go to retrieve an installation access token for an app installed into an organization.
## Usage```yaml
name: Checkout repos
on: push
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: mercari/github-app-token-generator@v1
id: get-token
with:
app-private-key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
app-installation-id: ${{ secrets.APP_INSTALLATION_ID}}
- name: Check out an other repo
uses: actions/checkout@v2
with:
repository: owner/repo
token: ${{ steps.get-token.outputs.token }}
```## Inputs
| Input | Description | Required? | Type |
|-----------------------|-------------------------------------------------|-----------|----------|
| `app-id` | GitHub App ID | ✅ | `number` |
| `app-installation-id` | ID of the app installation to your organization | ✅ | `number` |
| `app-private-key` | Private key of your GitHub App (Base64 encoded) | ✅ | `string` |## Outputs
| Output | Description | Type |
|---------|----------------------------|----------|
| `token` | Generated short-live token | `string` |## Contributions
Please read the [CLA](https://www.mercari.com/cla/) carefully before submitting your contribution to Mercari. Under any circumstances, by submitting your contribution, you are deemed to accept and agree to be bound by the terms and conditions of the CLA.
## License
Copyright 2022 Mercari, Inc.
Licensed under the MIT License.
## Credits
This was originally developed by [mlioo/go-github-app-token-generator](https://github.com/mlioo/go-github-app-token-generator).