Skip to content

Commit

Permalink
fix: use ACTIONS_WRITE_TOKEN in attributions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Jul 10, 2024
1 parent f7d8e61 commit 2de0807
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-attributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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' ]]
Expand All @@ -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:
Expand Down Expand Up @@ -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 }}'

0 comments on commit 2de0807

Please sign in to comment.