Commit 6693e01
fix(ci): scan-and-report — skip verisimdb dispatch when VERISIMDB_PAT is absent (#156)
## Summary
`VERISIMDB_PAT` is declared **optional** in `scan-and-report.yml`, but
consumers without it fall back to `GITHUB_TOKEN` — which is scoped to
the calling repo and can never fire a `repository_dispatch` at
`verisimdb-data`. Result: every consumer without the PAT gets a red
Security Scan at the dispatch step (bare `curl` exit 22), even though
the scan itself passed. Seen on echidna run 28842498410 immediately
after #155 removed the argv overflow that had been masking it.
- **No PAT** → `::notice` + skip the dispatch step; the scan result
still gates the job.
- **With PAT** → capture `%{http_code}` and print the API response body
on rejection, so a real dispatch failure is diagnosable.
## Verification
- `actionlint` clean.
- Skip path exercised locally (empty `DISPATCH_TOKEN` → notice + exit
0).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 906781f commit 6693e01
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
76 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
80 | | - | |
81 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments