Skip to content

Commit d27b737

Browse files
committed
fix: add missing environment variable for GH_TOKEN in PR commits and author check steps
1 parent ed905cb commit d27b737

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reassign-copilot-commits.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ jobs:
4040
4141
- name: Get PR commits
4242
id: commits
43+
env:
44+
GH_TOKEN: ${{ secrets.GH_PAT }}
4345
run: |
4446
COMMITS=$(gh pr view $PR_NUMBER --json commits -q '.commits[].oid')
4547
echo "COMMITS=$COMMITS" >> $GITHUB_ENV
4648
echo "$COMMITS" > commits.txt
4749
4850
- name: Check for Copilot as author
4951
id: check_copilot
52+
env:
53+
GH_TOKEN: ${{ secrets.GH_PAT }}
5054
run: |
5155
COPILOT_EMAILS="github-actions[bot]@users.noreply.github.com\[email protected]\[email protected]"
5256
FOUND=0

0 commit comments

Comments
 (0)