Skip to content

Commit c878b0a

Browse files
committed
Try changing the permissions
1 parent 2d0d46f commit c878b0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ on:
2121
description: 'optional comment to add to PR'
2222
default: ''
2323

24+
permissions: write-all
25+
2426
env:
2527
branchPrefix: "workflow/auto-update-deps-"
2628
triggerTestsLabel: "tests-requested: quick"
@@ -216,7 +218,7 @@ jobs:
216218
# Push branch
217219
git push --set-upstream origin "${NEW_BRANCH}"
218220
# Create pull request
219-
pr_number=$(python scripts/gha/create_pull_request.py --token ${{ steps.generate-token.outputs.token }} --head "${NEW_BRANCH}" --base "${{ github.event.inputs.baseBranch }}" --title "${commit_title}" --body "${commit_body}")
221+
pr_number=$(python scripts/gha/create_pull_request.py --token ${{ secrets.GITHUB_TOKEN }} --head "${NEW_BRANCH}" --base "${{ github.event.inputs.baseBranch }}" --title "${commit_title}" --body "${commit_body}")
220222
echo "created_pr_number=${pr_number}" >> $GITHUB_OUTPUT
221223
else
222224
echo "::warning ::No changes detected, won't create pull request."

0 commit comments

Comments
 (0)