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 (#121)
Layer-1 propagation of hyperpolymath/hypatia#252. This repo's own copy
of hypatia-scan.yml hard-failed (exit 127) for any commit with >=1
finding: the "Submit findings to gitbot-fleet (Phase 2)" step cloned
gitbot-fleet and exec'd scripts/submit-finding.sh, which no longer
exists on gitbot-fleet's default branch.
Phase 2 is the collaborative LEARNING side-channel, not the security
gate. Fix: continue-on-error + self-healing body (non-fatal clone,
probe known script paths, graceful ::warning:: skip). Security
enforcement (the baseline-aware critical/high step) is unchanged.
Refs hyperpolymath/hypatia#252
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# The submission script's location in gitbot-fleet has drifted
131
+
# before (it was absent from the default branch, which exit-127'd
132
+
# every consuming repo's scan). Probe known locations rather than
133
+
# hard-coding one path, and skip gracefully if none is present.
134
+
SUBMIT_SCRIPT=""
135
+
for cand in \
136
+
"$FLEET_DIR/scripts/submit-finding.sh" \
137
+
"$FLEET_DIR/scripts/submit_finding.sh" \
138
+
"$FLEET_DIR/bin/submit-finding.sh" \
139
+
"$FLEET_DIR/submit-finding.sh"; do
140
+
if [ -f "$cand" ]; then
141
+
SUBMIT_SCRIPT="$cand"
142
+
break
143
+
fi
144
+
done
145
+
146
+
if [ -z "$SUBMIT_SCRIPT" ]; then
147
+
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."
148
+
rm -rf "$FLEET_DIR"
149
+
exit 0
150
+
fi
151
+
152
+
# Run submission script. Pass the findings path as ABSOLUTE —
153
+
# the script cd's into its own working dir before reading the
154
+
# file, so a relative path would resolve to the wrong place.
155
+
# A submission-script failure is logged but non-fatal.
156
+
if bash "$SUBMIT_SCRIPT" "$GITHUB_WORKSPACE/hypatia-findings.json"; then
0 commit comments