-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use ACTIONS_WRITE_TOKEN in attributions workflow
- Loading branch information
1 parent
f7d8e61
commit 2de0807
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
-f content='+1' | ||
env: | ||
COMMENT_ID: ${{ github.event.comment.id }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_WRITE_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
|
||
prepare: | ||
|
@@ -144,6 +144,8 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git commit -am "Update Attributions" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_WRITE_TOKEN }} | ||
- name: Post comment | ||
run: | | ||
if [[ $HAS_CHANGES == 'true' ]] | ||
|
@@ -154,7 +156,7 @@ jobs: | |
fi | ||
env: | ||
HAS_CHANGES: ${{ steps.attributions-changes.outputs.HAS_CHANGES }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_WRITE_TOKEN }} | ||
PR_NUMBER: ${{ github.event.issue.number }} | ||
|
||
check-status: | ||
|
@@ -190,6 +192,6 @@ jobs: | |
gh pr comment "${PR_NUMBER}" --body "Attributions update failed. You can [review the logs or retry the attributions update here](${ACTION_RUN_URL})" | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_WRITE_TOKEN }} | ||
PR_NUMBER: ${{ github.event.issue.number }} | ||
ACTION_RUN_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' |