From 7bf9c191cc16b251d7c2c7f8a0c698726fe9774f Mon Sep 17 00:00:00 2001 From: Rosy-Glorious Miki Date: Mon, 2 Mar 2026 14:23:52 -0500 Subject: [PATCH] fix: adds a github app installation token and passes it into GITHUB_TOKEN in order to fix 'Invalid GitHub token' authentication error Signed-off-by: Rosy-Glorious Miki --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85c3fb3..9411035 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,14 +42,20 @@ jobs: version-release: runs-on: ubuntu-latest needs: [test-makefile, test-fedora] + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true + - name: Github app installation token + id: create_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.RELEASE_APP_ID }} + private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} - name: Semantic Release uses: cycjimmy/semantic-release-action@v6 - if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: - GITHUB_TOKEN: ${{ secrets.RELEASE_APP_ID }} + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}