Skip to content

Commit

Permalink
Generate and use token from GH App
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Feb 17, 2023
1 parent 9c9d8c7 commit e90c6d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update-cookbook-gallery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ jobs:
python -m pre_commit run --all-files
exit 0
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v4
Expand All @@ -122,7 +128,7 @@ jobs:
title: 'Update cookbook gallery per #${{ github.event.issue.number }}'
body: |
Update cookbook gallery as requested in #${{ github.event.issue.number }}. Closes #${{ github.event.issue.number }}.
token: ${{ secrets.PAT }}
token: ${{ steps.generate-token.outputs.token }}
branch: cookbook-gallery-${{ github.event.issue.number }}

- name: Find Comment
Expand Down

0 comments on commit e90c6d6

Please sign in to comment.