GitHub Star Tracker supports GitHub Enterprise Server (GHES) installations, allowing you to track stars for repositories hosted on your organization’s private GitHub instance.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fbuireu/github-star-tracker/llms.txt
Use this file to discover all available pages before exploring further.
Overview
GitHub Enterprise Server support enables:- Tracking repositories on self-hosted GHES instances
- Automatic API URL detection on GHES runners
- Manual API endpoint configuration
- All standard Star Tracker features on GHES
Automatic Configuration
When running on GitHub Enterprise Server runners, the API URL is automatically detected.Using GHES Runners
On GHES runners, the
GITHUB_API_URL environment variable is automatically set by GitHub Enterprise.Manual Configuration
For runners that don’t auto-detect the API URL, specify it manually.Setting API URL Explicitly
From the action.yml specification (action.yml:14-17):Workflow Configuration
Identify Your GHES API URL
Your GitHub Enterprise Server API URL follows this format:For example:
https://github.company.com/api/v3https://git.enterprise.org/api/v3
Personal Access Token for GHES
Create a PAT on your GitHub Enterprise Server instance:Generate New Token
- Click Generate new token > Generate new token (classic)
- Note: Enter a descriptive name like
Star Tracker - Expiration: Set your preferred expiration
Select Scopes
Choose the appropriate scope:
repo- Full control (required for private repos)public_repo- Public repos only
PAT requirements are the same for GHES as for GitHub.com. See the Personal Access Token guide for detailed instructions.
Complete GHES Workflow Example
Full workflow configuration for GitHub Enterprise Server:Using with GitHub.com Runners
If using GitHub.com-hosted runners to track GHES repositories:Network and Firewall Considerations
Runner Network Access
Ensure your runners can reach the GHES API:Firewall Rules
Ensure these ports are open:| Port | Protocol | Purpose |
|---|---|---|
| 443 | HTTPS | GHES API access |
| 22 | SSH | Git operations (optional) |
Proxy Configuration
If using a corporate proxy:SSL/TLS Certificates
Self-Signed Certificates
If your GHES instance uses self-signed certificates:Custom CA Certificates
For enterprise CA certificates:Version Compatibility
Supported GHES Versions
GitHub Star Tracker is compatible with:- GitHub Enterprise Server 3.0+
- GitHub Enterprise Server 2.22+ (with REST API v3)
Star Tracker uses the GitHub REST API v3, which is stable across GHES versions. As long as your GHES instance supports REST API v3, Star Tracker should work.
Checking GHES API Version
Verify your GHES API is accessible:Troubleshooting
Connection Refused or Timeout
Verify API URL
Verify API URL
Ensure the API URL is correct:NOT:
Test Connectivity
Test Connectivity
From the runner, test access:
Check Firewall Rules
Check Firewall Rules
Ensure port 443 is open from runner to GHES instance.
Verify DNS Resolution
Verify DNS Resolution
Ensure the GHES hostname resolves:
Authentication Errors
401 Unauthorized:- Verify PAT is created on the correct GHES instance
- Ensure PAT has required scopes (
repoorpublic_repo) - Check PAT hasn’t expired
- PAT may lack necessary permissions
- Organization policies may restrict API access
- Rate limit may be exceeded (check
X-RateLimit-Remainingheader)
SSL Certificate Errors
- Install custom CA certificate on runner
- Use properly signed certificate on GHES
- As last resort, disable SSL verification (not recommended)
API URL Not Auto-Detected
If running on GHES runners but API URL isn’t detected:Mixed Environments
Tracking Both GitHub.com and GHES
You cannot track both GitHub.com and GHES repos in a single workflow run. Use separate workflows:Security Considerations
Token Security
- Never commit GHES tokens to repositories
- Use repository secrets for token storage
- Rotate tokens regularly
- Use minimum required scopes
Network Security
- Use HTTPS (not HTTP) for API URLs
- Validate SSL certificates in production
- Restrict runner network access to necessary endpoints
- Use proxy servers if required by organization policy
Audit and Compliance
- GHES administrators can audit PAT usage
- Review Star Tracker’s API calls in GHES audit logs
- Ensure compliance with organization data policies