https://github.com/getsentry/action-github-app-token
Gets a GitHub auth token for a GitHub App installation
https://github.com/getsentry/action-github-app-token
tag-production
Last synced: about 2 months ago
JSON representation
Gets a GitHub auth token for a GitHub App installation
- Host: GitHub
- URL: https://github.com/getsentry/action-github-app-token
- Owner: getsentry
- Created: 2020-08-11T16:07:57.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T00:28:09.000Z (4 months ago)
- Last Synced: 2025-04-07T18:09:10.811Z (2 months ago)
- Topics: tag-production
- Language: TypeScript
- Homepage:
- Size: 949 KB
- Stars: 199
- Watchers: 37
- Forks: 86
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-github-app-token
This uses GitHub Apps to fetch a GitHub auth token for a GitHub App installation.
The GitHub App is used to authorize API access across multiple repositories.## Development
Install the dependencies
```bash
$ yarn
```Build the typescript and package it for distribution
```bash
$ yarn dist
```## Usage
You will need to provide the GitHub App ID and private key. The action will then provide a `token` output.
```
- name: my-app-install token
id: my-app
uses: getsentry/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}- name: Checkout private repo
uses: actions/checkout@v4
with:
repository: getsentry/my-private-repo
token: ${{ steps.my-app.outputs.token }}
```