From aa3f83767523fb98c3e9fc58edd767b6be13aa75 Mon Sep 17 00:00:00 2001 From: PPawlowski Date: Mon, 4 May 2026 13:39:15 +0200 Subject: [PATCH] Switch to GH App token in `Synchronize Labels` --- .github/workflows/sync-labels.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 7530b3d..9180cf3 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -6,14 +6,22 @@ jobs: sync_labels: runs-on: ubuntu-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Use Node.js 24 + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Setup Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 24 - name: Install github-label-sync run: npm install -g github-label-sync + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 + with: + client-id: ${{ secrets.GH_BOT_APP_ID}} + private-key: ${{ secrets.GH_BOT_APP_KEY }} + owner: ${{ github.repository_owner }} - name: Run github-label-sync run: sh ./sync-labels.sh env: - gh_token: ${{ secrets.PROJECT_ACCESS_TOKEN }} + gh_token: ${{ steps.generate_token.outputs.token }}