Skip to main content

GitHub CLI (gh)

Provides a comprehensive reference for using GitHub CLI to manage repositories, issues, pull requests, and more from the command line.

Install this skill

or
10/100

Security score

The GitHub CLI (gh) skill was audited on May 13, 2026 and we found 22 security issues across 4 threat categories, including 4 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 34

Curl to non-GitHub URL

SourceSKILL.md
34curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
low line 669

Access to hidden dotfiles in home directory

SourceSKILL.md
669gh repo deploy-key add ~/.ssh/id_rsa.pub \
low line 1743

Access to hidden dotfiles in home directory

SourceSKILL.md
1743gh ssh-key add ~/.ssh/id_rsa.pub --title "My laptop"
low line 1746

Access to hidden dotfiles in home directory

SourceSKILL.md
1746gh ssh-key add ~/.ssh/id_ed25519.pub --type "authentication"
low line 1762

Access to hidden dotfiles in home directory

SourceSKILL.md
1762gh gpg-key add ~/.ssh/id_rsa.pub
low line 1945

Access to hidden dotfiles in home directory

SourceSKILL.md
1945gh completion -s bash > ~/.gh-complete.bash
low line 1946

Access to hidden dotfiles in home directory

SourceSKILL.md
1946gh completion -s zsh > ~/.gh-complete.zsh
low line 1947

Access to hidden dotfiles in home directory

SourceSKILL.md
1947gh completion -s fish > ~/.gh-complete.fish
low line 1948

Access to hidden dotfiles in home directory

SourceSKILL.md
1948gh completion -s powershell > ~/.gh-complete.ps1
low line 2124

Access to hidden dotfiles in home directory

SourceSKILL.md
2124# Add to ~/.bashrc or ~/.zshrc
high line 669

Access to SSH directory

SourceSKILL.md
669gh repo deploy-key add ~/.ssh/id_rsa.pub \
high line 1743

Access to SSH directory

SourceSKILL.md
1743gh ssh-key add ~/.ssh/id_rsa.pub --title "My laptop"
high line 1746

Access to SSH directory

SourceSKILL.md
1746gh ssh-key add ~/.ssh/id_ed25519.pub --type "authentication"
high line 1762

Access to SSH directory

SourceSKILL.md
1762gh gpg-key add ~/.ssh/id_rsa.pub
medium line 34

Access to system keychain/keyring

SourceSKILL.md
34curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
medium line 35

Access to system keychain/keyring

SourceSKILL.md
35echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.lis
low line 34

External URL reference

SourceSKILL.md
34curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
low line 35

External URL reference

SourceSKILL.md
35echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.lis
low line 482

External URL reference

SourceSKILL.md
482gh repo create my-repo --homepage https://example.com
low line 570

External URL reference

SourceSKILL.md
570gh repo edit --homepage https://example.com
low line 656

External URL reference

SourceSKILL.md
656--url-template https://jira.example.com/browse/<num>
low line 2197

External URL reference

SourceSKILL.md
2197- Official Manual: https://cli.github.com/manual/
Scanned on May 13, 2026
View Security Dashboard