Commit 0597948
fix(ci): pass GITHUB_TOKEN to Hypatia scanner in reusable workflow (#428)
The reusable scan workflow never set GITHUB_TOKEN in the "Run Hypatia
scan" step, so the scanner's Dependabot / code-scanning /
secret-scanning alert checks were always skipped with "GITHUB_TOKEN not
set" warnings across every repo that calls this workflow.
Set it to `secrets.HYPATIA_SCAN_PAT || secrets.GITHUB_TOKEN`:
- Prefer a fine-grained, read-only PAT inherited as an org Actions
secret (HYPATIA_SCAN_PAT) -- the built-in Actions token CANNOT read
Dependabot alerts (no `dependabot` permission exists for GITHUB_TOKEN).
- Fall back to the built-in token so code-scanning alerts still resolve
in repos where the PAT is not present yet.
This silences the three warnings fleet-wide once the org secret exists.
It does not change the severity gate (medium+ findings still fail CI).
Claude-Session: https://claude.ai/code/session_01V13sGvHnaeCY5A9fF2QsDm
<!--
SPDX-License-Identifier: CC-BY-SA-4.0
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
-->
## Summary
<!-- What does this PR do, and why? -->
Closes #
## Type of change
- [ ] 🐛 Bug fix (non-breaking change that fixes an issue)
- [ ] ✨ New feature (non-breaking change that adds functionality)
- [ ] 💥 Breaking change (would change existing behaviour)
- [ ] 🕳️ Soundness fix (fixes a checker/proof false-negative)
- [ ] 📖 Documentation
- [ ] 🧹 Refactor / tech debt (behaviour-preserving)
- [ ] ⚡ Performance
- [ ] 🔧 Build / CI / tooling
## How has this been verified?
<!-- Establish ground truth: which tool did you RUN, and what did it
report?
Don't cite a status doc — cite the command and its output. -->
## Checklist
- [ ] My commits are **signed** (`git commit -S`).
- [ ] I ran the project's own checks/tests locally and they pass.
- [ ] New files carry the correct `SPDX-License-Identifier` (code/config
`MPL-2.0`,
prose `CC-BY-SA-4.0`); I did not relicense existing files.
- [ ] Docs are updated, and no public claim now overstates what the code
does.
- [ ] I have not introduced a soundness hole (or I have flagged where I
might have).
## Notes for reviewers
<!-- Anything that needs special attention, follow-up, or context. -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent da1ee5e commit 0597948
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
0 commit comments