summaryrefslogtreecommitdiff
path: root/plugins/claude-security/scripts/keep-waiting.sh
diff options
context:
space:
mode:
authorMichael Moore <1198206+imichaelmoore@users.noreply.github.com>2026-08-17 12:57:41 -0700
committerGitHub <noreply@github.com>2026-08-17 14:57:41 -0500
commit8aa2f06489538f7b4eb660f47731f84edacf006f (patch)
treed980c6eab0940252ed2d96f66249760fc681cbd9 /plugins/claude-security/scripts/keep-waiting.sh
parentf4eb5d70b353a3493655e1451ac7f501ef3d5c67 (diff)
Claude Security Plugin - v0.10.1-rc7 (#5403)
Diffstat (limited to 'plugins/claude-security/scripts/keep-waiting.sh')
-rwxr-xr-xplugins/claude-security/scripts/keep-waiting.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/claude-security/scripts/keep-waiting.sh b/plugins/claude-security/scripts/keep-waiting.sh
new file mode 100755
index 00000000..8920d36d
--- /dev/null
+++ b/plugins/claude-security/scripts/keep-waiting.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+# Hold the Security Lead's turn while the scan workflow runs: wait, then tell the
+# caller to run this again unless the workflow's result has arrived.
+# Usage: keep-waiting.sh [SECONDS] (1 to 110, default 90; exits 2 on a bad value)
+# The wait stays under the Bash tool's two-minute default timeout, past which a
+# command is moved to the background and no longer holds the turn.
+seconds=${1:-90}
+case $seconds in '' | *[!0-9]*) seconds=0 ;; esac
+if [ "$seconds" -lt 1 ] || [ "$seconds" -gt 110 ]; then
+ echo "usage: keep-waiting.sh [SECONDS between 1 and 110]" >&2
+ exit 2
+fi
+sleep "$seconds"
+echo "Waited ${seconds}s. If the scan workflow's result has not arrived, run this same command again now; do not reply to the user or end your turn until it arrives."