Skip to content

Commit

Permalink
Merge pull request #1050 from dfinity/replace-token-with-app
Browse files Browse the repository at this point in the history
chore(IDX): replace PAT with GitHub App
  • Loading branch information
cgundy authored Nov 19, 2024
2 parents b64644e + 666dea4 commit a4dc2ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/update-ic-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4dc2ae

Please sign in to comment.