Replies: 5 comments
|
Not aware of an Enterprise Cloud policy knob that centrally disables For enterprise rollout, the usual control point is outside If my answer solved your problem, please mark it as answered the question β I'm here to help, and honestly I'm also collecting Galaxy Brain badges along the way π |
|
For GitHub Enterprise Cloud, there isnβt a single global βdisable Practical controls IT teams use:
Feature request path: open a discussion/issue on cli/cli asking for an enterprise policy flag (e.g. disable extension install via If you share whether devices are MDM-managed, I can suggest a tighter concrete policy. |
|
For enterprise deployments, treat What GitHub does not provide todayThere is no built-in enterprise allowlist/blocklist for Practical risk controls
For GHE Cloud admins
Community patternMany enterprises run an internal "approved tools" doc and block There is an open feature request for enterprise extension governance β worth upvoting if this is a blocker for your rollout. |
|
You are right to treat What GitHub /
|
| Control | What it helps |
|---|---|
| Allowlist process | Only approve specific owner/repo extension repos after code review; publish an internal manifest (see discussion #10053). |
Block gh extension install via policy |
Some orgs distribute a pinned gh build or wrapper script that rejects extension subcommands on managed laptops (MDM / software restriction). |
| Separate automation tokens | CI uses fine-scoped GITHUB_TOKEN / GitHub Apps; developers use SSO-enforced PATs with limited repo access so a rogue extension cannot reach production repos. |
| Audit inventory | Regularly run gh extension list (or MDM software inventory) and compare to the allowlist. |
| Pin versions | Document approved extension commit SHAs; reinstall only after re-review when upgrading. |
GH_EXTENSIONS_DIR |
Install only into a controlled directory on managed machines (still requires blocking arbitrary installs). |
| Network egress | Restrict outbound GitHub access on servers; extensions matter most on developer workstations, not CI runners (prefer plain gh in CI). |
Operational recommendation
- Publish an internal approved-extensions list (JSON + install script).
- Train developers: no extensions on production-access machines unless on the list.
- Prefer native
ghcommands / GitHub Actions / internal tools over extensions for regulated workflows. - Log and review β treat a new extension like installing a new npm global binary from an unknown publisher.
Feature gap
An enterprise-friendly gh extension policy (org-level allowlist synced from GitHub settings) would address this cleanly; until then, governance is process + endpoint controls, not a switch in GHEC admin.
Happy to share a sample allowlist manifest format if useful for your security review packet.
|
I'd suggest the following approach:
If none of these work, providing a minimal reproduction repo would help the maintainers diagnose the issue faster. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am working to enable GitHub cli for my enterprise. We are using GitHub Enterprise cloud.
I observed that users can install extension using
gh extension install REPO.This opens a IT security risk. Are there some security guidelines being followed to check if extensions are safe and donot download or run malicious code on user's workstations?
Apart from auditing the code, how can enterprise organizations manage the risk posture and still use gh commands?
Will be interested to learn how others are taking care of these?
Best Regards,
Nit
All reactions