This guide helps you set up GitHub Enterprise Cloud SSO with Microsoft Entra ID using our automated CLI tool.
Before starting:
- Admin access to Microsoft Entra ID (Azure AD)
- Your GitHub Enterprise name (e.g.,
mycompany) - Your organization's Entra domain (e.g.,
mycompany.onmicrosoft.com)
-
Install Node.js (if not already installed)
- Download from nodejs.org - choose the LTS version
- Follow the installer instructions
-
Install the CLI tool
npm install -g git+https://github.com/benleane83/ghec-sso-setup.git
-
Verify installation
ghec-sso --version
ghec-sso setup --enterprise my-companyExample:
ghec-sso setup --enterprise acme-corpThe tool will:
- ✅ Create and configure the Entra ID application automatically
- ✅ Assign you as Enterprise Owner
- ✅ Provide SSO configuration values
- ✅ Open GitHub Enterprise SSO settings page
Assist in copying the displayed values into GitHub:
- Sign-On URL
- Issuer (Entity ID)
- Certificate
The tool will prompt the user to perform the following manual steps
- In GitHub, enable SSO and get your SCIM token
- Navigate to the Entra ID Application and enter the provided values to enable auto provisioning
Automatically:
- ✅ Creates GitHub Enterprise Managed User app in Entra ID
- ✅ Configures all SSO settings and URLs
- ✅ Generates and configures certificates
- ✅ Sets up user roles and permissions
Requires manual steps:
- 📋 Copy SSO values into GitHub Enterprise settings
- 📋 Test SSO authentication
- 📋 Enable SSO enforcement when ready
Installation issues:
# Try with administrator privileges
sudo npm install -g git+https://github.com/benleane83/ghec-sso-setup.git
# Or check Node.js installation
node --version
npm --versionAuthentication issues:
# Check your authentication status
ghec-sso auth status
# Re-authenticate if needed
ghec-sso auth logout
ghec-sso auth login- View all commands:
ghec-sso --help - Check status:
ghec-sso auth status - Validate setup:
ghec-sso validate -e my-company
- Test SSO authentication with a few users first
- Ensure you have recovery access to GitHub Enterprise
- Add users/groups to the Entra ID application
- Test user access before enforcing SSO
- Set up monitoring for authentication issues
Need more help? See the full documentation in README.md or INSTALL.md