Skip to content

Conversation

@tina-cloud-app
Copy link
Contributor

@tina-cloud-app tina-cloud-app bot commented Jan 2, 2026

  • Updated youtube link to the latest update video
  • Fixed install scripts to be latest

Co-authored-by: Gordon Beeming <[email protected]>
@github-actions github-actions bot added the Age: 🥚 - New About 2 hours old label Jan 2, 2026
@github-actions github-actions bot changed the title public/uploads/rules/use github-copilot-cli-secure-environment/rule (PR from TinaCMS) XS ◾ public/uploads/rules/use github-copilot-cli-secure-environment/rule (PR from TinaCMS) Jan 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

PR Metrics

Thanks for keeping your pull request small.

Lines
Product Code -
Test Code -
Subtotal -
Ignored Code 3
Total 3

Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs!

@GordonBeeming GordonBeeming marked this pull request as ready for review January 2, 2026 00:32
Copilot AI review requested due to automatic review settings January 2, 2026 00:32
Copy link
Contributor

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 updates the GitHub Copilot CLI secure environment rule by modernizing the installation process and updating the sidebar video. The changes simplify the installation instructions by replacing multi-step manual processes with single-command automated installers.

Key changes:

  • Updated sidebar video URL to a newer version
  • Simplified Linux/macOS installation from 8 lines to 1 line using a release-based installer
  • Simplified Windows PowerShell installation from 9 lines to 1 line using a release-based installer

Comment on lines 113 to 115
```bash
# Download the script
curl -fsSL https://raw.githubusercontent.com/GordonBeeming/copilot_here/main/copilot_here.sh -o ~/.copilot_here.sh

# Add to your shell profile (~/.zshrc or ~/.bashrc) - only if not already there
if ! grep -q "source ~/.copilot_here.sh" ~/.zshrc 2>/dev/null; then
echo '' >> ~/.zshrc
echo 'source ~/.copilot_here.sh' >> ~/.zshrc
fi

# Reload your shell
source ~/.zshrc # or source ~/.bashrc
curl -fsSL https://github.com/GordonBeeming/copilot_here/releases/download/cli-latest/install.sh | $SHELL
```
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

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

The new installation method pipes a script directly from the internet to the shell interpreter without allowing users to inspect it first. This is a security anti-pattern, especially ironic given this rule is about security and "secure environments." Consider adding a security warning box that recommends users review the installation script before running it, or provide an alternative two-step installation process where users download the script first and then execute it. Many security-conscious organizations block this pattern (curl | sh) in their policies.

Copilot uses AI. Check for mistakes.
# Reload your profile
. $PROFILE
iex ([System.Text.Encoding]::UTF8.GetString((iwr -UseBasicParsing 'https://github.com/GordonBeeming/copilot_here/releases/download/cli-latest/install.ps1').Content))
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

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

Similar to the Bash installation, this PowerShell command executes a remote script without inspection using Invoke-Expression (iex). This is a well-known security anti-pattern in PowerShell. The command is also quite complex and difficult to read. Consider adding a security warning or providing a safer alternative that allows users to download and review the script before execution.

Suggested change
iex ([System.Text.Encoding]::UTF8.GetString((iwr -UseBasicParsing 'https://github.com/GordonBeeming/copilot_here/releases/download/cli-latest/install.ps1').Content))
# Download the installer script
Invoke-WebRequest -UseBasicParsing `
-Uri 'https://github.com/GordonBeeming/copilot_here/releases/download/cli-latest/install.ps1' `
-OutFile 'install_copilot_here.ps1'
# Review install_copilot_here.ps1 before running, for example:
# notepad .\install_copilot_here.ps1
# Run the installer after reviewing
.\install_copilot_here.ps1

Copilot uses AI. Check for mistakes.
@github-actions github-actions bot added Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old Age: 🐓 - Old About 32 hours old Age: 🍗 - Ancient About 64 hours old Age: 🦖 - Extinct About 128 hours old and removed Age: 🥚 - New About 2 hours old Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old Age: 🐓 - Old About 32 hours old Age: 🍗 - Ancient About 64 hours old labels Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Age: 🦖 - Extinct About 128 hours old

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants