Skip to content
file-plus

GitHub Action

App token

v1 Latest version

App token

file-plus

App token

Run a GitHub action as an app token when GITHUB_TOKEN is too restrictive

Installation

Copy and paste the following snippet into your .yml file.

              

- name: App token

uses: sjdaws/app-token@v1

Learn more about this action in sjdaws/app-token

Choose a version

App token

This action copies bubkoo/use-app-token but also works when running behind a proxy.

Usage

This action should be used when GITHUB_TOKEN is too restrictive.

- name: Get token
  id: get_token
  uses: sjdaws/app-token@v1
  with:
    appId: ${{ secrets.APP_ID }}
    privateKey: ${{ secrets.APP_PEM }}
- name: Use token
  uses: ...
  with:
    token: ${{ steps.get_token.outputs.token }}