fix(security): replace curl-pipe-bash with actions/setup-cli (RGS-006)#29209
Closed
Copilot wants to merge 4 commits into
Closed
fix(security): replace curl-pipe-bash with actions/setup-cli (RGS-006)#29209Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
6 tasks
…mediate RGS-006 Replace `curl -fsSL ... | bash` with `gh extension install github/gh-aw` in all gh-aw installation steps to eliminate the curl-pipe-bash remote code execution vector (RGS-006). Changes: - .github/workflows/copilot-setup-steps.yml: use gh extension install - .github/workflows/shared/mcp/gh-aw.md: use gh extension install in fallback - pkg/cli/copilot_setup.go: update dev-mode template + recognition logic - pkg/cli/copilot_setup_test.go, init_mcp_test.go: update tests Recompile all lock files (205 workflows) to propagate the fix. Agent-Logs-Url: https://github.com/github/gh-aw/sessions/16240971-387e-441e-997c-6205297382b6 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…function name per code review Agent-Logs-Url: https://github.com/github/gh-aw/sessions/16240971-387e-441e-997c-6205297382b6 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix remote code execution vulnerability in copilot-token-audit.lock.yml
fix(security): replace curl-pipe-bash with gh extension install (RGS-006)
Apr 29, 2026
Collaborator
|
@copilot use actions/setup-cli to install gh-aw |
…xtension install Per @pelikhan review feedback, replace `gh extension install github/gh-aw` with the `actions/setup-cli` action in all dev-mode installation steps: - .github/workflows/copilot-setup-steps.yml: reorder checkout first, then use ./actions/setup-cli with version: latest - pkg/cli/copilot_setup.go: dev-mode template uses github/gh-aw/actions/setup-cli@main (adds checkout step) - renderCopilotSetupUpdateInstructions: show checkout + setup-cli in instructions - Tests updated to assert setup-cli pattern; backward-compat detection retained for existing files using gh extension install or curl-pipe-bash Recompile all 205 lock files. Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c6515ff4-e02b-48b7-83c3-81c5b3f62d8d Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done in 832e460.
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
fix(security): replace curl-pipe-bash with gh extension install (RGS-006)
fix(security): replace curl-pipe-bash with actions/setup-cli (RGS-006)
Apr 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
copilot-token-audit.lock.yml(and its source imports) usedcurl -fsSL .../refs/heads/main/install-gh-aw.sh | bash— a mutable branch reference piped directly to bash. Static analysis flagged this as RGS-006 (curl-pipe-bash RCE vector).Changes
Source workflow files
.github/workflows/copilot-setup-steps.yml— checkout moved first, install step now uses./actions/setup-cliwithversion: latest.github/workflows/shared/mcp/gh-aw.md— conditional fallback usesgh extension install(only triggers if gh-aw is not pre-installed)Go codegen (
pkg/cli/copilot_setup.go)github/gh-aw/actions/setup-cli@mainwithversion: latest(mirrors the release-mode pattern)hasCurlBashInstall(legacy curl-pipe-bash),hasActionInstall(setup-cli), andhasGHExtensionInstall(gh extension install) all retained for backward compatibilityrenderCopilotSetupUpdateInstructionsemits the checkout +setup-clipattern in instructionsBefore → After
Lock files — all 205 workflows recompiled;
copilot-token-audit.lock.ymlandcopilot-token-optimizer.lock.ymlare the two directly affected.Tests — assertions updated to check for
actions/setup-cli; backward-compat fixtures retained since old curl-pipe-bash andgh extension installpatterns are still recognized and not overwritten.