Skip to content

Commit 13072bd

Browse files
committed
fix: Use a token that can access the target repo when performing actions there
1 parent a4d8e86 commit 13072bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Add PR URLs to findings
8888
uses: actions/github-script@v8
8989
with:
90-
github-token: ${{ secrets.GITHUB_TOKEN }}
90+
github-token: ${{ secrets.GH_TOKEN }}
9191
script: |
9292
const fs = require('fs');
9393
if (!process.env.FINDINGS_PATH || !fs.existsSync(process.env.FINDINGS_PATH)) {
@@ -160,7 +160,7 @@ jobs:
160160
fi
161161
done
162162
env:
163-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
163+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
164164

165165
- name: Clean up cached findings
166166
if: ${{ always() }}

0 commit comments

Comments
 (0)