Files
marqdo-view/scripts/test-security.sh
T
cflmy 5a61788bc9 feat(PR-01): 0.2.0 Tool v1 bundle, scripts/ layout and CI lanes
- bump View product version to 0.2.0 (Cargo.toml, Cargo.lock, tool.json, CLI)
- move all maintenance scripts from tools/ to scripts/ per RFC-0002 §5.3
- add scripts/verify-frozen-cli.sh: records version/SHA and fails if the frozen
  CLI changes across a command sequence
- add .github/workflows/ci.yml: quality lane + frozen-CLI acceptance lane with
  archive SHA verification and evidence upload; update .woodpecker.yml paths
- record PR-01 black-box evidence: tool install/list/view --help/version,
  tamper rejection, tool remove, frozen CLI SHA unchanged
2026-11-22 12:51:36 +08:00

23 lines
685 B
Bash
Executable File

#!/usr/bin/env bash
# Security/contract suite: HTTP boundary, CSRF/Origin, path escapes, XSS
# sanitization, export-no-exec, architectural coupling gates.
#
# Usage: scripts/test-security.sh
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"
cargo test --locked --test http_live
cargo test --locked --test rendering
cargo test --locked --test export
cargo test --locked --test no_coupling
cargo test --locked --test asset_integrity
if [[ -n "${MARQDO_FROZEN_BIN:-}" ]]; then
MARQDO_BIN="$MARQDO_FROZEN_BIN" ./scripts/test-export.sh
else
echo "note: MARQDO_FROZEN_BIN not set; skipped real-core export script"
fi
echo "security: PASS"