From b6440aa134fe31dd3a26e2ed342b578dbe9b61c8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 24 Nov 2024 09:46:40 -0700 Subject: [PATCH] fix(workflow): permissions for installers upload --- .github/workflows/installers.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 07c7560..f4c7aeb 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -17,6 +17,14 @@ jobs: sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.sh > installer.sh sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.ps1 > installer.ps1 + - name: generate-token + id: generate_token + uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 + with: + app_id: ${{ secrets.BOT2_APP_ID }} + private_key: ${{ secrets.BOT2_APP_PEM }} + revoke: true + - name: upload uses: softprops/action-gh-release@v2 with: @@ -24,4 +32,4 @@ jobs: installer.sh installer.ps1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} \ No newline at end of file