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
287
-
# before (it was absent from the default branch, which exit-127'd
288
-
# every consuming repo's scan). Probe known locations rather than
289
-
# hard-coding one path, and skip gracefully if none is present.
290
-
SUBMIT_SCRIPT=""
291
-
for cand in \
292
-
"$FLEET_DIR/scripts/submit-finding.sh" \
293
-
"$FLEET_DIR/scripts/submit_finding.sh" \
294
-
"$FLEET_DIR/bin/submit-finding.sh" \
295
-
"$FLEET_DIR/submit-finding.sh"; do
296
-
if [ -f "$cand" ]; then
297
-
SUBMIT_SCRIPT="$cand"
298
-
break
299
-
fi
300
-
done
301
-
302
-
if [ -z "$SUBMIT_SCRIPT" ]; then
303
-
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."
304
-
rm -rf "$FLEET_DIR"
305
-
exit 0
306
-
fi
307
-
308
-
# Run submission script. Pass the findings path as ABSOLUTE —
309
-
# the script cd's into its own working dir before reading the
310
-
# file, so a relative path would resolve to the wrong place.
311
-
# A submission-script failure is logged but non-fatal.
312
-
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"
321
264
- name: Check for critical issues
322
265
if: steps.scan.outputs.critical > 0
323
266
# GATING POLICY (explicit, by design — not an oversight):
@@ -335,7 +278,6 @@ jobs:
335
278
echo "::warning::Hypatia found critical security issue(s) — advisory."
336
279
echo "See the Security → Code scanning page (category: hypatia)"
337
280
echo "and the hypatia-findings.json artifact for details."
0 commit comments