Skip to content

Commit 3dfcd52

Browse files
hyperpolymathclaude
andcommitted
fix(ci): pass GITHUB_TOKEN to Hypatia scan step
After the HYPATIA_DIR fix in PR #44 got the scanner past the working-directory error, the next step (`Run Hypatia scan`) is now actually executing — and failing because the scanner queries Dependabot alerts, which requires GITHUB_TOKEN. The default GITHUB_TOKEN has the security_events:read scope that the alerts API needs; passing it via env on the scan step closes the gap. Verified by reading the actual scan log: Scanning repository: hyperpolymath/affinescript Warning: Dependabot alerts unavailable: GITHUB_TOKEN not set — cannot query Dependabot alerts ##[error]Process completed with exit code 1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 116ea5d commit 3dfcd52

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
5656
- name: Run Hypatia scan
5757
id: scan
58+
env:
59+
# Hypatia uses Dependabot alerts as one of its signal sources.
60+
# Without GITHUB_TOKEN it warns and exits 1. The default GITHUB_TOKEN
61+
# has the security_events:read scope needed to query alerts.
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5863
run: |
5964
echo "Scanning repository: ${{ github.repository }}"
6065

0 commit comments

Comments
 (0)