#!/usr/bin/env bash
# Setup script for sec-006-dependency-vulnerability-check
set -euo pipefail

TASK_DIR="$(cd "$(dirname "$0")/.." && pwd)"
WORKSPACE="${1:-$TASK_DIR/workspace}"

mkdir -p "$WORKSPACE"
cp "$TASK_DIR/environment/data/requirements.txt" "$WORKSPACE/requirements.txt"
cp "$TASK_DIR/environment/data/vuln_database.json" "$WORKSPACE/vuln_database.json"
echo "Workspace ready with requirements.txt and vuln_database.json"
