Skip to content

Fix CLI install script#1319

Merged
ije merged 1 commit intomainfrom
fix-install-script
Feb 25, 2026
Merged

Fix CLI install script#1319
ije merged 1 commit intomainfrom
fix-install-script

Conversation

@ije
Copy link
Member

@ije ije commented Feb 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 25, 2026 04:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the CLI installation script by correcting platform target names to match the actual GitHub release artifact naming convention.

Changes:

  • Updated platform target names from amd64 suffix to x64 suffix (darwin-amd64darwin-x64, linux-amd64linux-x64) to align with release artifacts
  • Reordered Darwin platform cases to match the release workflow order (arm64 before x64)
  • Renamed variable exe to exe_path for better clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +35 to +38
curl --fail --location --progress-bar --output "$exe_path.gz" "$dl_url"
tar -xzf "$exe_path.gz" -C "$bin_dir"
chmod +x "$exe_path"
rm "$exe_path.gz"
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This install script downloads and extracts a remote CLI binary from https://github.com/esm-dev/esm.sh/... via curl and tar without any checksum or signature verification. If the release artifact or distribution channel is compromised, an attacker can ship a malicious binary that will be installed into bin_dir and later executed by users, resulting in a supply chain compromise. Add integrity verification (e.g., validating a pinned SHA-256 checksum or cryptographic signature for the downloaded archive) before extracting and installing the binary.

Copilot uses AI. Check for mistakes.
@ije ije merged commit a368377 into main Feb 25, 2026
9 checks passed
@ije ije deleted the fix-install-script branch February 25, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants