Skip to content

Commit

Permalink
fix permission for peter-evans/create-pull-request
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Feb 8, 2024
1 parent ce58403 commit 3eba32d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ concurrency:
cancel-in-progress: true

permissions:
contents: read
contents: write
pull-requests: write

jobs:
main:
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
# app_id: ${{ secrets.SYNC_APP_ID }}
# private_key: ${{ secrets.SYNC_PRIVATE_KEY }}

# permission is set to `write` for `pull-requests` and `contents`
- uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
with:
# token: ${{ steps.app.outputs.token }}
Expand Down

0 comments on commit 3eba32d

Please sign in to comment.