CI / contracts (push) Canceled after 0s
Website / deploy (push) Canceled after 0s
CI / test (macos-latest) (push) Canceled after 0s
CI / test (ubuntu-24.04) (push) Canceled after 0s
CI / test (ubuntu-24.04-arm) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / operation-readiness (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
20 lines
842 B
Bash
20 lines
842 B
Bash
#!/bin/sh
|
|
set -eu
|
|
mkdir -p "$HOME/.config/gf"
|
|
cp /opt/cybot/rules/gf/cybot-urls.json "$HOME/.config/gf/cybot-urls.json"
|
|
case "${1:-help}" in
|
|
health)
|
|
for tool in cybot semgrep gosec go gitleaks trufflehog gf anew jsluice linkfinder; do
|
|
command -v "$tool" >/dev/null || exit 1
|
|
printf 'ok\t%s\n' "$tool"
|
|
done
|
|
test -s /opt/cybot/rules/semgrep-security.yaml
|
|
;;
|
|
versions) cat /opt/cybot/manifest/analysis.lock.json ;;
|
|
cybot) shift; exec /opt/cybot/bin/cybot "$@" ;;
|
|
exec) shift; exec "$@" ;;
|
|
shell) exec /bin/sh ;;
|
|
help) printf '%s\n' 'CYBOT Analysis: cybot, health, versions, exec, shell.' 'Pinned Semgrep, Gosec, Go SDK, Gitleaks, TruffleHog, GF and Anew.' 'Go dependencies must already be available locally; runtime downloads are disabled.' ;;
|
|
*) printf 'Unknown command: %s\n' "$1" >&2; exit 2 ;;
|
|
esac
|