Skip to content

wranders/ghapp-token-action

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

Repository files navigation

Get a Github App token

If a Github App has access to the repository this Action is run in, then this Action retrieves a token so that App can perform tasks on the repository, such as making verified commits.

Inputs

app_id

Required The Github App's identification number.

app_key_pem

Required A PEM-encoded RSA private key generated by the Application

Outputs

token

An access token to perform tasks on behalf of the App.

Example usage

- uses: wranders/ghapp-token-action@v1
  id: get-token
  with:
    app_id: ${{ secrets.APP_ID }}
    app_key_pem: ${{ secrets.APP_PRIVATE KEY }}
- uses: release-drafter/release-drafter@v5
  env:
    GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}