Skip to content

Commit 2d646a3

Browse files
authored
Merge pull request #1887 from github/henrymercer/add-token-to-update-dependencies
Add GitHub token to update dependencies workflow
2 parents a9313c9 + 2c22b37 commit 2d646a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-dependencies.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ jobs:
1515

1616
- name: Remove PR label
1717
env:
18+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
1819
REPOSITORY: '${{ github.repository }}'
1920
PR_NUMBER: '${{ github.event.pull_request.number }}'
20-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
2121
run: |
2222
gh api "repos/$REPOSITORY/issues/$PR_NUMBER/labels/Update%20dependencies" -X DELETE
2323
2424
- name: Push updated dependencies
2525
env:
2626
BRANCH: '${{ github.head_ref }}'
27+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
2728
run: |
2829
git fetch origin "$BRANCH" --depth=1
2930
git checkout "origin/$BRANCH"

0 commit comments

Comments
 (0)