Skip to content

getsentry/action-github-app-token

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a006101 · Sep 5, 2024

History

40 Commits
Feb 1, 2024
Oct 31, 2022
Feb 1, 2024
Oct 6, 2020
Oct 6, 2020
Aug 28, 2020
Sep 5, 2024
Feb 1, 2024
Aug 28, 2020
Sep 5, 2024
Aug 28, 2020
Sep 4, 2024

Repository files navigation

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

$ yarn

Build the typescript and package it for distribution

$ 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 }}