-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
cosmos #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cosmosdasw3
wants to merge
3
commits into
codeaashu:main
Choose a base branch
from
cosmosdasw3:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+20
−9
Open
cosmos #19
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| if ! command -v bun >/dev/null 2>&1; then | ||
| echo "Bun not found — installing..." | ||
| curl -fsSL https://bun.sh/install | bash | ||
| export PATH="$HOME/.bun/bin:$PATH" | ||
| else | ||
| echo "Bun found: $(bun --version || true)" | ||
| fi | ||
|
|
||
| echo "Installing dependencies..." | ||
| bun install | ||
|
|
||
| echo "Running build..." | ||
| if [ -n "${VERCEL_BUILD_COMMAND:-}" ]; then | ||
| eval "$VERCEL_BUILD_COMMAND" | ||
| else | ||
| bun run build | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: codeaashu/claude-code
Length of output: 223
🏁 Script executed:
Repository: codeaashu/claude-code
Length of output: 50378
🏁 Script executed:
Repository: codeaashu/claude-code
Length of output: 7358
🌐 Web query:
Official Bun documentation for pinning a specific Bun version in the install script and verifying the installer checksum or signature💡 Result:
To pin a specific version of Bun using the official install script, you can pass the desired version (as a git tag) to the script [1][2][3]. For Linux and macOS, append the tag to the command using the -s flag [1][2][3]: curl -fsSL https://bun.com/install | bash -s "bun-v1.3.3" For Windows, use the -Version parameter with the PowerShell install script [1][2][3]: iex "& {$(irm https://bun.com/install.ps1)} -Version 1.3.3" Regarding checksum signature verification, official Bun documentation for the standard install script does not provide a manual step for users to verify a checksum signature before execution [1][3]. The installation process relies on the security of the transport layer (HTTPS) and the script's own execution logic, which fetches the binary directly from the official repository [4][5]. For project-level version control, you can also pin the Bun version within a repository by adding a version field to your bunfig.toml file (e.g., version = "1.3.3") [6]. When using this method, if the running Bun version does not match the constraint and you are using the official install layout, Bun will automatically prompt to download or automatically manage the required version [6]. In CI/CD or specialized build environments, alternative methods such as setting a BUN_VERSION environment variable or using tools like bunx are often employed to ensure reproducible builds [7][8].
Citations:
versionfield oven-sh/bun#28438🌐 Web query:
site:vercel.com/kb/guide/how-to-pin-a-specific-bun-version-for-vercel-builds Bun version Vercel💡 Result:
Vercel supports using Bun as a package manager during the build process [1]. You can pin a specific version of Bun for your Vercel builds by configuring the Install Command in your Project Settings or within your vercel.json file [1]. To specify a version, use the following syntax as your Install Command: bunx bun@x.x.x install For example, to pin Bun to version 1.3.1: bunx bun@1.3.1 install While Vercel allows the use of Bun for dependency installation, it does not currently provide native support for running applications using the Bun runtime in serverless functions [1].
Citations:
🌐 Web query:
site:bun.com/docs/installation Bun install script checksum signature verification💡 Result:
The official Bun documentation does not provide a checksum or cryptographic signature verification method for its install script [1]. The standard installation procedure for Bun involves piping the output of a remote script directly into a shell or PowerShell interpreter [1]. curl -fsSL https://bun.com/install | bash Because the official installation method does not include a built-in mechanism for verifying the script's integrity via checksums, users should be aware that piping directly to bash carries inherent security risks, as it executes the script immediately upon download without an intermediate verification step. For environments requiring stricter security, manual verification of such scripts typically involves downloading the script to a local file first, inspecting its contents, and manually verifying its hash before execution, though official hashes for the Bun install script are not provided by the project [1]. Once installed, the integrity of the Bun executable itself can be confirmed by checking its version and revision [1]. bun --version bun --revision
Citations:
Pin the Bun version before execution.
Line 6 executes a mutable network response with Bash. The repository declares
bun@1.1.0, but this script does not enforce that version. Use a version-specific Bun installer invocation, or configure Vercel to provide the pinned Bun version. Remove the checksum requirement unless the project adopts a documented verification method.🤖 Prompt for AI Agents
Source: Linters/SAST tools