mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 16:37:04 +00:00
Brainstormed design for adding the SPDX-CMSD-1.0 header to every first-party source file (~2,170 across 6 languages), backed by a reusable Python tool (scripts/license-headers.py), a CI check, and a phased per-package rollout. Spec covers scope, header rendering per language, placement rules, tool architecture, CI integration with an enrollment allowlist, and verification steps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
25 lines
816 B
Bash
Executable File
25 lines
816 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
REPO="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
# shellcheck source=../../scripts/lib/test-helpers.sh
|
|
source "$REPO/scripts/lib/test-helpers.sh"
|
|
|
|
TMP="$(mktemp -d)"
|
|
trap 'rm -rf "$TMP"' EXIT
|
|
echo '["secubox-core","secubox-hub"]' > "$TMP/manifest.json"
|
|
|
|
output="$(bash "$REPO/scripts/build-packages.sh" bookworm amd64 --filter "$TMP/manifest.json" --dry-run 2>&1 || true)"
|
|
|
|
assert_contains "$output" "secubox-core" "core should be in dry-run output"
|
|
assert_contains "$output" "secubox-hub" "hub should be in dry-run output"
|
|
|
|
if [[ "$output" == *"secubox-crowdsec"* ]]; then
|
|
echo "FAIL: crowdsec was NOT filtered out"
|
|
echo "----- output -----"
|
|
echo "$output"
|
|
echo "------------------"
|
|
exit 1
|
|
fi
|
|
pass "filter restricts package set"
|