feat: initial open marketplace with llm-security, config-audit, ultraplan-local
This commit is contained in:
commit
f93d6abdae
380 changed files with 65935 additions and 0 deletions
27
plugins/config-audit/examples/run-demo.sh
Executable file
27
plugins/config-audit/examples/run-demo.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
# Demo: run config-audit scanners on the example projects
|
||||
# Usage: bash examples/run-demo.sh (from plugin root)
|
||||
# or: cd examples && bash run-demo.sh
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
if [ -d "$SCRIPT_DIR/../scanners" ]; then
|
||||
SCANNER_DIR="$(cd "$SCRIPT_DIR/../scanners" && pwd)"
|
||||
else
|
||||
SCANNER_DIR=""
|
||||
fi
|
||||
|
||||
if [ -z "$SCANNER_DIR" ] || [ ! -f "$SCANNER_DIR/posture.mjs" ]; then
|
||||
echo "Error: Cannot find scanners/posture.mjs"
|
||||
echo "Run from plugin root: bash examples/run-demo.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== Minimal Setup (expect low score) ==="
|
||||
echo ""
|
||||
node "$SCANNER_DIR/posture.mjs" "$SCRIPT_DIR/minimal-setup/"
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo "=== Optimal Setup (expect high score) ==="
|
||||
echo ""
|
||||
node "$SCANNER_DIR/posture.mjs" "$SCRIPT_DIR/optimal-setup/"
|
||||
Loading…
Add table
Add a link
Reference in a new issue