Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
unlock

GitHub Action

GitHub App Token Action

v1.1.5

GitHub App Token Action

unlock

GitHub App Token Action

Run a GitHub Action as a GitHub App instead of using secrets.GITHUB_TOKEN or a personal access token

Installation

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

              

- name: GitHub App Token Action

uses: peaceiris/actions-github-app-token@v1.1.5

Learn more about this action in peaceiris/actions-github-app-token

Choose a version

GitHub App Token Action

A fork of tibdex/github-app-token.

Example Workflow

name: "Pull Request Labeler"

on:
  pull_request_target:

jobs:
  triage:
    runs-on: ubuntu-22.04
    timeout-minutes: 1
    permissions: {}
    steps:
      - uses: peaceiris/actions-github-app-token@v1
        id: app
        with:
          app_id: ${{ secrets.GH_APP_ID }}
          private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

      # https://github.com/actions/labeler
      - uses: actions/labeler@v4
        with:
          repo-token: "${{ steps.app.outputs.token }}"