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
# The submission script's location in gitbot-fleet has drifted
271
-
# before (it was absent from the default branch, which exit-127'd
272
-
# every consuming repo's scan). Probe known locations rather than
273
-
# hard-coding one path, and skip gracefully if none is present.
274
-
SUBMIT_SCRIPT=""
275
-
for cand in \
276
-
"$FLEET_DIR/scripts/submit-finding.sh" \
277
-
"$FLEET_DIR/scripts/submit_finding.sh" \
278
-
"$FLEET_DIR/bin/submit-finding.sh" \
279
-
"$FLEET_DIR/submit-finding.sh"; do
280
-
if [ -f "$cand" ]; then
281
-
SUBMIT_SCRIPT="$cand"
282
-
break
283
-
fi
284
-
done
285
-
286
-
if [ -z "$SUBMIT_SCRIPT" ]; then
287
-
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."
288
-
rm -rf "$FLEET_DIR"
289
-
exit 0
290
-
fi
291
-
292
-
# Run submission script. Pass the findings path as ABSOLUTE —
293
-
# the script cd's into its own working dir before reading the
294
-
# file, so a relative path would resolve to the wrong place.
295
-
# A submission-script failure is logged but non-fatal.
296
-
if bash "$SUBMIT_SCRIPT" "$GITHUB_WORKSPACE/hypatia-findings.json"; then
run: "echo \"\U0001F4E4 Submitting $FINDINGS_COUNT findings to gitbot-fleet...\"\n\n# Clone gitbot-fleet to temp directory. A clone failure (network,\n# repo gone) is non-fatal: learning submission is best-effort.\nFLEET_DIR=\"/tmp/gitbot-fleet-$$\"\nif ! git clone --depth 1 https://github.com/hyperpolymath/gitbot-fleet.git \"$FLEET_DIR\"; then\n echo \"::warning::Could not clone gitbot-fleet — skipping Phase 2 learning submission (non-fatal).\"\n exit 0\nfi\n\n# The submission script's location in gitbot-fleet has drifted\n# before (it was absent from the default branch, which exit-127'd\n# every consuming repo's scan). Probe known locations rather than\n# hard-coding one path, and skip gracefully if none is present.\nSUBMIT_SCRIPT=\"\"\nfor cand in \\\n \"$FLEET_DIR/scripts/submit-finding.sh\" \\\n \"$FLEET_DIR/scripts/submit_finding.sh\" \\\n \"$FLEET_DIR/bin/submit-finding.sh\" \\\n \"$FLEET_DIR/submit-finding.sh\"; do\n if [ -f \"$cand\" ]; then\n SUBMIT_SCRIPT=\"$cand\"\n break\n fi\ndone\n\nif [ -z \"$SUBMIT_SCRIPT\" ]; then\n 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.\"\n rm -rf \"$FLEET_DIR\"\n exit 0\nfi\n\n# Run submission script. Pass the findings path as ABSOLUTE —\n# the script cd's into its own working dir before reading the\n# file, so a relative path would resolve to the wrong place.\n# A submission-script failure is logged but non-fatal.\nif bash \"$SUBMIT_SCRIPT\" \"$GITHUB_WORKSPACE/hypatia-findings.json\"; then\n echo \"✅ Finding submission complete\"\nelse\n echo \"::warning::gitbot-fleet submission script exited non-zero — Phase 2 learning submission skipped (non-fatal).\"\nfi\n\n# Cleanup\nrm -rf \"$FLEET_DIR\"\n"
305
252
- name: Check for critical issues
306
253
if: steps.scan.outputs.critical > 0
307
254
# GATING POLICY (explicit, by design — not an oversight):
@@ -319,7 +266,6 @@ jobs:
319
266
echo "::warning::Hypatia found critical security issue(s) — advisory."
320
267
echo "See the Security → Code scanning page (category: hypatia)"
321
268
echo "and the hypatia-findings.json artifact for details."
0 commit comments