Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 744 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 744 Bytes

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