fix: gh cli needs explicit GH_TOKEN env var in gha (#21680)

This commit is contained in:
bo0tzz
2025-09-08 16:48:08 +02:00
committed by GitHub
parent fb1458c720
commit 5acf909235
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -36,6 +36,7 @@ jobs:
- name: Bot review status
env:
PR_NUMBER: ${{ github.event.pull_request.number || github.event.pull_request_review.pull_request.number }}
GH_TOKEN: ${{ github.token }}
run: |
# Then check for APPROVED by the bot, if absent fail
gh pr view "$PR_NUMBER" --json reviews | jq -e '.reviews | map(select(.author.login == "github-actions[bot]" and .state == "APPROVED")) | length > 0' \