You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): Phase-2 fleet submission must not fail the security gate (#62)
Layer-1 propagation of **hyperpolymath/hypatia#252**.
This repo carries its own copy of `.github/workflows/hypatia-scan.yml`.
The **"Submit findings to gitbot-fleet (Phase 2)"** step hard-failed the
job (exit 127) for any commit with ≥1 finding — it clones `gitbot-fleet`
and execs `scripts/submit-finding.sh`, which no longer exists on
gitbot-fleet's default branch. That is the estate-wide "Hypatia
Neurosymbolic Analysis fails regardless of content" symptom.
Phase 2 is the collaborative **learning** side-channel, not the security
gate (the gate is the separate baseline-aware critical/high step, which
is untouched). Fix mirrors the canonical workflow:
- `continue-on-error: true` on the Phase-2 step.
- Self-healing body: non-fatal clone, probe known submit-script paths,
skip with `::warning::` if absent or non-zero.
Surgical: only the Phase-2 step changed; every other step preserved.
Security enforcement is unchanged.
Refs hyperpolymath/hypatia#252
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# The submission script's location in gitbot-fleet has drifted
107
+
# before (it was absent from the default branch, which exit-127'd
108
+
# every consuming repo's scan). Probe known locations rather than
109
+
# hard-coding one path, and skip gracefully if none is present.
110
+
SUBMIT_SCRIPT=""
111
+
for cand in \
112
+
"$FLEET_DIR/scripts/submit-finding.sh" \
113
+
"$FLEET_DIR/scripts/submit_finding.sh" \
114
+
"$FLEET_DIR/bin/submit-finding.sh" \
115
+
"$FLEET_DIR/submit-finding.sh"; do
116
+
if [ -f "$cand" ]; then
117
+
SUBMIT_SCRIPT="$cand"
118
+
break
119
+
fi
120
+
done
121
+
122
+
if [ -z "$SUBMIT_SCRIPT" ]; then
123
+
echo "::warning::gitbot-fleet submit-finding script not found at any known path — skipping Phase 2 learning submission (non-fatal). Findings are still uploaded as an artifact and gated below."
124
+
rm -rf "$FLEET_DIR"
125
+
exit 0
126
+
fi
127
+
128
+
# Run submission script. Pass the findings path as ABSOLUTE —
129
+
# the script cd's into its own working dir before reading the
130
+
# file, so a relative path would resolve to the wrong place.
131
+
# A submission-script failure is logged but non-fatal.
132
+
if bash "$SUBMIT_SCRIPT" "$GITHUB_WORKSPACE/hypatia-findings.json"; then
0 commit comments