
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@jonchurch/claude-code-gh
Advanced tools
Auto-install GitHub CLI (gh) for Claude Code web/remote sessions
Claude Code web sessions run on ephemeral VMs without the GitHub CLI (gh). If you're used to having Claude work with gh locally, you won't be able to in web sessions.
This package fixes that by installing gh automatically when your session starts.
[!NOTE] Hopefully Anthropic will add the
ghcli as installed software on their default iamges, then this package will not be necessary and can be archived.
Remote sessions only see repo-level settings. Add to .claude/settings.json in your repo:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "npx @jonchurch/claude-code-gh"
}
]
}
]
}
}
Commit and gh will be available in your next web session.
Running npx on every session start means executing code from npm that you don't control. If you'd rather call a script under your own version control:
npx @jonchurch/claude-code-gh install
This copies the script to .claude/hooks/ and updates your settings to use it. Commit both and you're set.
Requires "Full" network access, or "Custom" with release-assets.githubusercontent.com allowed. ("Limited" won't work - GitHub downloads redirect to that domain.)
For private repos or higher rate limits, add GH_TOKEN to your environment variables.
MIT
FAQs
Auto-install GitHub CLI (gh) for Claude Code web/remote sessions
The npm package @jonchurch/claude-code-gh receives a total of 10 weekly downloads. As such, @jonchurch/claude-code-gh popularity was classified as not popular.
We found that @jonchurch/claude-code-gh demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.