From 666dea4165fe319c4c5094816d8c1465f8fccb89 Mon Sep 17 00:00:00 2001 From: Carly Gundy <47304080+cgundy@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:46:22 +0100 Subject: [PATCH] chore(IDX): replace PAT with GitHub App --- .github/workflows/update-ic-commit.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-ic-commit.yml b/.github/workflows/update-ic-commit.yml index 5671d2836..a2ba9b17d 100644 --- a/.github/workflows/update-ic-commit.yml +++ b/.github/workflows/update-ic-commit.yml @@ -11,6 +11,13 @@ jobs: ic-update: runs-on: ubuntu-latest steps: + - name: Create GitHub App Token + uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }} + private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }} + - uses: actions/checkout@v4 # First, check if there is a newer version and update the file referencing the version @@ -68,7 +75,7 @@ jobs: if: ${{ steps.update.outputs.updated == '1' }} uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.GIX_CREATE_PR_PAT }} + token: ${{ steps.app-token.outputs.token }} base: master add-paths: ./.ic-commit commit-message: Update commit of IC artifacts