fix: pin bun install to v1.3.10 with existence check

Addresses Snyk W012 (MEDIUM). Pins BUN_VERSION in browse.ts resolver,
Dockerfile.ci, and setup script error message. Adds command -v check
to skip install if bun already present.
This commit is contained in:
Garry Tan
2026-03-27 09:19:06 -06:00
parent 4e339e9ab6
commit f00c8419b8
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ set -e
if ! command -v bun >/dev/null 2>&1; then
echo "Error: bun is required but not installed." >&2
echo "Install it: curl -fsSL https://bun.sh/install | bash" >&2
echo "Install it: curl -fsSL https://bun.sh/install | BUN_VERSION=1.3.10 bash" >&2
exit 1
fi