This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-02 08:48:51 +09:00
1 parent 5140da6eb9
commit d99ec1c02c
135 files changed
+606 -1867

No files matched your search

+4 -4
View File
@@ -60,14 +60,14 @@ generate() {
WORK_DIR="$(mktemp -d)"
trap 'rm -rf "$WORK_DIR"' RETURN
# --- Python: resolve all transitive deps without installing ---
# Python: resolve all transitive deps without installing
dim "Resolving Python transitive deps (uv pip compile)..."
uv pip compile "$ROOT_DIR/backend/requirements.txt" \
--python-version 3.12 \
--quiet \
> "$WORK_DIR/requirements-resolved.txt" 2>/dev/null
# --- JavaScript: package-lock.json is already fully resolved ---
# JavaScript: package-lock.JSON is already fully resolved
if [[ -f "$ROOT_DIR/package-lock.json" ]]; then
cp "$ROOT_DIR/package-lock.json" "$WORK_DIR/package-lock.json"
# Syft needs package.json alongside the lockfile
@@ -76,7 +76,7 @@ generate() {
warn "package-lock.json not found — JS deps will be skipped"
fi
# --- Scan only the resolved files ---
# Scan only the resolved files
dim "Scanning resolved manifests with Syft..."
syft scan "dir:$WORK_DIR" \
--output "cyclonedx-json=$OUTPUT" \
@@ -175,7 +175,7 @@ else:
"
}
# --- Main ---
# Main
cd "$ROOT_DIR"
TARGET="${1:-generate}"