Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions scripts/run-e2e-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,22 @@ echo "=== Setting AWS account env var ==="
export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
echo "✅ AWS_ACCOUNT_ID=$AWS_ACCOUNT_ID AWS_REGION=$AWS_REGION"

echo "=== Configuring git (required for agentcore create) ==="
git config --global user.email "ci@local" 2>/dev/null || true
git config --global user.name "Local E2E" 2>/dev/null || true

cd "$REPO_ROOT"

echo "=== Verifying git is configured (required for agentcore create) ==="
git_email="$(git config --global user.email || true)"
git_name="$(git config --global user.name || true)"

if [ -z "$git_email" ] || [ -z "$git_name" ]; then
echo "ERROR: git is not configured. 'agentcore create' requires a global git identity." >&2
echo "Set it with:" >&2
echo " git config --global user.email \"you@example.com\"" >&2
echo " git config --global user.name \"Your Name\"" >&2
exit 1
fi

echo "git configured as: $git_name <$git_email>"

echo "=== Installing dependencies ==="
npm ci

Expand Down
Loading