From 534197e5010076801778673ca4ba9746b04375db Mon Sep 17 00:00:00 2001 From: David Losert Date: Thu, 22 Aug 2024 13:57:13 +0200 Subject: [PATCH] ci: Adjust release to use app token to allow rules bypass --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7458751..8ac679f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,7 @@ on: workflow_dispatch: permissions: - contents: write - issues: write - pull-requests: write + contents: read jobs: release: @@ -23,7 +21,13 @@ jobs: run: npm ci - name: Build run: npm run build + - name: Get Release Token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v3 + with: + application_id: ${{ secrets.RELEASE_APP_ID }} + application_private_key: ${{ secrets.RELEASE_APP_CERT }} - name: Semantic Release run: npx semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}