From b7e57c2c27cf284ccb9f28e3090f76defc3592a7 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 8 Feb 2024 14:02:11 -0600 Subject: [PATCH] ci: Change from PAT to GitHub App --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b42e3b..2060131 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,13 +68,21 @@ jobs: args+=' --snapshot' fi echo "args=$args" >> $GITHUB_OUTPUT + - name: Generate Token + id: app-token + if: startsWith(github.ref, 'refs/tags/') + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.BOT_APP_ID }} + private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} + repositories: yampl,homebrew-tap - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest args: ${{ steps.vars.outputs.args }} env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} FURY_TOKEN: ${{ secrets.FURY_TOKEN }} AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} - uses: actions/upload-artifact@v4