Skip to content

Commit cd67367

Browse files
hyperpolymathclaude
andcommitted
ci(supervised-fleet-scan): pass GITHUB_TOKEN + lower threshold to surface Dependabot findings
Fixes two silent-drop defects in the scheduled fleet scan workflow: 1. GITHUB_TOKEN was not passed to the fleet-coordinator env, so the Hypatia DependabotAlerts rule (DA001-DA004) always returned `{:error, "GITHUB_TOKEN not set"}` and no alerts were ever surfaced. Three low-severity CVEs on hyperpolymath/007 sat open for weeks partly for this reason. Token resolution order: secrets.FLEET_SCAN_PAT (preferred, needs `security_events` scope on every target repo) -> secrets.GITHUB_TOKEN (fallback — only scopes this repo). For a real estate-wide scan the PAT is required; otherwise the workflow only ever queries alerts on gitbot-fleet itself. 2. HYPATIA_SEVERITY defaulted to "medium", which filtered out every low-severity finding from every rule (not just Dependabot). Now set to "low" so the scan surfaces the full picture; downstream dispatch/review still gates behaviour per severity. Pairs with: - verification-ecosystem/hypatia@75a36ce (exported-severity floor so fresh-low Dependabot alerts reach default threshold) - 007-lang@769fed0 + rsr-template-repo@80a66ae (per-repo hypatia-scan.yml now passes its own built-in token through and declares security-events: read) See 007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md for the full chain audit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 93daf05 commit cd67367

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/supervised-fleet-scan.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ jobs:
4343
INVENTORY_FILE: ${{ github.event.inputs.inventory_file || '' }}
4444
PROCESS_FINDINGS: ${{ github.event.inputs.process_findings || 'true' }}
4545
FLEET_SUPERVISED_REPOS_FILE: ${{ github.event.inputs.inventory_file || '' }}
46+
# GITHUB_TOKEN is required for Hypatia's DependabotAlerts
47+
# rule (DA001-DA004) to query per-repo Dependabot alerts via
48+
# the GitHub REST API. The built-in secrets.GITHUB_TOKEN
49+
# only has scope for the gitbot-fleet repo itself — for
50+
# cross-repo scanning across the estate, promote this to a
51+
# PAT secret (FLEET_SCAN_PAT) with `security_events` scope
52+
# on every target repo. Without a valid token, the rule
53+
# silently returns no findings and Dependabot alerts are
54+
# missed. See
55+
# 007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md.
56+
GITHUB_TOKEN: ${{ secrets.FLEET_SCAN_PAT || secrets.GITHUB_TOKEN }}
57+
# HYPATIA_SEVERITY=low surfaces low-severity findings from
58+
# every rule module. The Hypatia CLI's default threshold is
59+
# "medium"; without this override, low-severity findings
60+
# from any rule (not just DependabotAlerts) are dropped.
61+
HYPATIA_SEVERITY: low
4662
run: |
4763
set -euo pipefail
4864
ARGS=(--limit "$LIMIT")

0 commit comments

Comments
 (0)