Repository navigation
Add GitHub Copilot CLI to Cloud Shell tools image - #659
Draft
Mitchell Bifeld (mbifeld) wants to merge 1 commit into
Draft
Mitchell Bifeld (mbifeld) wants to merge 1 commit into
Mitchell Bifeld (mbifeld) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Summary
@github/copilotnpm package globally in the tools image and clean the npm cache.copilotto the command baseline and a focused non-root Pester availability test for--versionand--help.Authentication behavior
The documented first-auth prompt matching the request is consent to store an OAuth token in plaintext when a system keychain is unavailable, rather than ordinary settings persistence. Official authentication documentation and CLI 1.0.111 help were inspected. No supported session-only/no-persist OAuth option was found;
storeTokenPlaintextopts into plaintext storage instead.This change installs the CLI independently and preserves credential-storage consent, directory trust, and tool-permission prompts in both ephemeral and persistent sessions. It does not configure credentials, auto-accept plaintext storage, or change the cached base-image tag. A supported upstream session-only OAuth mode would be needed to implement the preferred ephemeral-session UX safely.
Reference: https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli
Verification
--versionand--helpas non-rootcsuser(UID 9527) in that image with networking disabled. Confirmed the license is readable and no root Copilot cache is baked in.copilotwas the only added command.Outstanding before shipping