GHAS Licensing Models
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Lesson: GitHub Advanced Security (GHAS) Licensing Models
Introduction: Why GHAS Licensing Matters
In the modern software development lifecycle, security can no longer be an afterthought or a final check performed before shipping a product. As organizations scale their engineering teams and increase the frequency of their deployments, the risk of vulnerabilities, hardcoded secrets, and dependency-related supply chain attacks grows exponentially. GitHub Advanced Security (GHAS) is a suite of tools designed to integrate directly into the developer workflow, identifying these issues as code is written rather than waiting for a late-stage security audit.
However, understanding the technical capabilities of GHAS is only half the battle. To successfully implement these tools, you must understand the licensing models that govern them. Licensing for GHAS is distinct from standard GitHub Enterprise subscriptions because it is tied directly to the number of active committers in a repository or organization. Choosing the wrong licensing tier or failing to account for how "active committers" are calculated can lead to unexpected budget overruns or, conversely, a lack of access to critical security features when they are needed most.
This lesson explores the intricacies of GHAS licensing, the distinction between various enterprise tiers, and the practical steps required to deploy these features effectively. Whether you are a lead developer, a security architect, or a procurement manager, understanding these economic and operational boundaries is essential for building a secure, compliant, and cost-effective development environment.
Not read yet
Understanding the GHAS Licensing Architecture
GitHub Advanced Security is not a standalone product you purchase in a vacuum; it is an add-on service for GitHub Enterprise. Because it operates at the repository level and scans code as it is pushed, its cost structure is based on consumption—specifically, the number of unique contributors who have pushed code to repositories where these features are enabled.
The "Active Committer" Metric
The most critical concept to grasp in GHAS licensing is the "Active Committer." GitHub defines an active committer as a unique user account that has pushed at least one commit to a repository that has GHAS features enabled within a specific billing cycle. This definition is precise and intentional. It means that if you have a repository with 500 total contributors, but only 10 people have pushed code to it during a given month, you are only billed for those 10 users.
This model is designed to be fair to organizations with large open-source footprints or large internal repositories where many people have read access but few actually contribute code. However, it also means that your bill can fluctuate based on team activity. If a team suddenly scales up or a project undergoes a massive refactoring effort involving many developers, your GHAS costs will increase accordingly.
Callout: The "Unique User" Distinction It is important to note that GHAS licensing is per-user, not per-repository. If a single developer pushes code to five different repositories that all have GHAS enabled, that developer counts as one active committer for the month. You do not pay five times for the same developer. This structure prevents organizations from being penalized for having a highly collaborative environment where developers work across multiple service boundaries.
GHAS Components Included in the License
When you purchase a GHAS license, you are gaining access to a suite of specific tools. These tools are designed to work together to provide a holistic view of your security posture. The primary components are:
- Secret Scanning: This tool automatically scans your repositories for known patterns of secrets, such as API keys, private keys, and tokens. It can also block developers from pushing secrets in the first place through push protection.
- Code Scanning: This utilizes CodeQL, a powerful semantic code analysis engine, to find vulnerabilities in your source code. It supports various languages and can be integrated into your CI/CD pipelines to prevent vulnerable code from reaching production.
- Dependency Graph and Dependabot: While the dependency graph is available in many tiers, GHAS enables advanced features like dependency review, which allows you to see the security impact of changes in pull requests before they are merged.
Not read yet
Comparing GHAS Licensing Tiers
While the core licensing model for GHAS is consistent (per active committer), the broader GitHub Enterprise environment dictates how you access these features. Organizations generally choose between GitHub Enterprise Cloud (GHEC) and GitHub Enterprise Server (GHES).
Licensing for GitHub Enterprise Cloud (GHEC)
GHEC is the most common deployment model for teams looking for a managed service. In this model, you pay for the GHAS license on top of your existing GHEC per-user license. The billing is handled through your GitHub Enterprise account, and you can monitor your usage through the "Usage" tab in your enterprise settings.
Licensing for GitHub Enterprise Server (GHES)
GHES is designed for organizations that require their code to reside entirely within their own infrastructure, such as on-premises data centers or private cloud environments. Licensing here is still based on active committers, but the mechanism for tracking usage often involves syncing data back to GitHub.com or using license files that define your user limits.
| Feature | GitHub Enterprise Cloud | GitHub Enterprise Server |
|---|---|---|
| Deployment | Managed by GitHub | Managed by Customer |
| Updates | Automatic | Manual/Scheduled |
| Usage Tracking | Real-time via Enterprise portal | Periodic via license file |
| Infrastructure | GitHub Cloud | On-prem/Private Cloud |
Note: Regardless of whether you use GHEC or GHES, the definition of an active committer remains identical. Always ensure that your internal user management, such as LDAP or SAML provisioning, is synchronized correctly to avoid paying for inactive or ghost accounts.
Not read yet
Deployment Strategies and Best Practices
Deploying GHAS is not as simple as flipping a switch. To maximize your investment and ensure that security doesn't become a bottleneck for your developers, you need a strategy.
Step-by-Step Deployment Process
- Audit Your Repository Inventory: Before enabling GHAS, identify which repositories contain sensitive code or production-facing services. You may not need to enable GHAS on internal documentation repositories or experimental sandboxes.
- Enable at the Organization or Enterprise Level: You can enable GHAS features for all existing and future repositories, or you can choose to enable them on a per-repository basis. For most organizations, a phased rollout is recommended.
- Configure Secret Scanning Push Protection: This is the most effective way to prevent leaks. By enabling push protection, you prevent developers from committing secrets to the history in the first place.
- Integrate Code Scanning into CI/CD: Configure your workflows to run CodeQL analysis on every pull request. This ensures that security checks are part of the standard review process.
- Establish a Triage Process: Once GHAS starts finding issues, you need a team to review them. Create a standard operating procedure (SOP) for how developers should handle security alerts.
Avoiding "Security Fatigue"
A common pitfall in GHAS deployment is "alert fatigue." If you enable CodeQL on a legacy codebase with thousands of existing vulnerabilities, your developers will be overwhelmed by thousands of alerts. To avoid this, use the "baseline" feature in code scanning.
Tip: Using Baselines When you first enable code scanning on a large, mature repository, you should establish a baseline. This tells GitHub to ignore all existing vulnerabilities until they are modified. This allows your team to focus only on new code and new vulnerabilities, preventing the overwhelming backlog from stalling your development velocity.
Code Example: Configuring Code Scanning
To enable code scanning in a GitHub repository, you typically create a YAML configuration file in the .github/workflows directory. Here is a standard configuration for a Node.js project:
name: "CodeQL Analysis"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '30 2 * * 1'
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
In this example, the workflow is configured to trigger on pushes and pull requests to the main branch. It also includes a weekly schedule to ensure that the code is scanned against the latest security database, even if no new code is pushed. The permissions block is crucial; without security-events: write, the action will fail because it cannot upload the results to the GitHub security dashboard.
Not read yet
Common Pitfalls and How to Avoid Them
Even with a well-planned rollout, organizations often stumble over specific operational hurdles. Being aware of these pitfalls can save you significant time and budget.
1. Misunderstanding the Billing Cycle
Organizations often assume they are billed for the number of seats they have in GitHub, but GHAS is billed based on active usage. If you have 1,000 employees but only 200 are active coders, you should plan your budget around 200. However, if you have a massive influx of contractors for a short-term project, you might see a spike in your bill. Always monitor the "Security" billing tab in your Enterprise settings to forecast costs.
2. Failing to Configure Exclusions
Not every repository needs advanced scanning. Enabling GHAS on low-risk repositories, such as public forks or personal experiment repos, is a waste of your licensing budget. Use the enterprise settings to restrict GHAS to specific teams or repositories where the risk profile justifies the cost.
3. Ignoring the "False Positive" Rate
Code scanning tools are excellent, but they are not perfect. Sometimes, they will flag code that is not actually vulnerable. If you don't provide your developers with the ability to dismiss alerts (and provide a justification for doing so), they will quickly lose trust in the tool. Ensure that your security team provides clear guidelines on what constitutes a valid "false positive."
Callout: The Importance of Developer Experience Security tools are only effective if developers actually use them. If your licensing or configuration makes the developer experience cumbersome, they will find ways to circumvent the security checks. Always prioritize tools that provide remediation suggestions directly in the pull request interface, rather than forcing developers to jump to a separate security portal.
4. Over-Provisioning Access
Don't give everyone in the organization permission to modify security policies. This leads to configuration drift where different teams apply different standards. Centralize the management of security policies to ensure that your compliance requirements are met consistently across the organization.
Not read yet
Advanced Licensing Considerations
As your organization scales, you might encounter scenarios where the standard "active committer" model requires deeper analysis. For instance, in large-scale microservice architectures, you may have hundreds of repositories, some of which are rarely touched.
Managing Large-Scale Environments
In very large organizations, it is often beneficial to automate the activation of GHAS features via the GitHub API or Terraform. By using Infrastructure-as-Code (IaC) to manage your GitHub settings, you can ensure that security is applied consistently at the moment a new repository is created.
# Example Terraform snippet for enabling GHAS on a repository
resource "github_repository" "secure_repo" {
name = "my-secure-project"
description = "A repository with GHAS enabled"
# Enabling security features
security_and_analysis {
secret_scanning {
status = "enabled"
}
secret_scanning_push_protection {
status = "enabled"
}
}
}
By using tools like Terraform, you remove the human error component from the licensing and configuration equation. You can define a policy that states "all production-tier repositories must have these security features enabled," and the automation will enforce it.
Auditing Your License Usage
Periodically, you should perform a security audit of your GHAS usage. Go to your organization or enterprise settings and review the number of active committers. Are there users who are no longer with the company but are still showing up as active? Are there automated service accounts that are triggering unnecessary scans? Cleaning up these accounts is not just good security practice—it is good financial management.
Not read yet
Frequently Asked Questions (FAQ)
Q: Does GHAS cover open-source repositories? A: GitHub provides free security features for public repositories, such as Dependabot and basic secret scanning. However, the full GHAS suite, including advanced CodeQL features and enterprise-grade support, is a paid add-on.
Q: What happens if I go over my estimated active committer count? A: GitHub Enterprise generally allows for some flexibility, but you will be charged for the additional active committers in your next billing cycle. It is best to review your usage monthly to avoid surprises.
Q: Can I disable GHAS for a single repository to save money? A: Yes, you can disable GHAS features at the repository level. However, be aware that doing so leaves that repository unprotected, which may violate your internal security policies.
Q: Does GHAS work with third-party CI/CD tools like Jenkins or CircleCI? A: While GHAS is deeply integrated with GitHub Actions, it also provides APIs and CLI tools that allow you to integrate code scanning results into other CI/CD platforms. You are not strictly locked into GitHub Actions, though that is the path of least resistance.
Not read yet
Best Practices for Long-Term Maintenance
Maintaining a secure software supply chain is a marathon, not a sprint. Once your GHAS deployment is up and running, you must establish a cycle of continuous improvement.
- Continuous Review: Revisit your security configurations every six months. As your architecture evolves, your security needs will change.
- Training: Invest in training your developers on how to use the security tools. The more they understand why a piece of code is flagged, the more effectively they can write secure code in the future.
- Feedback Loops: Create a feedback loop where developers can report issues with the security tools. If a specific rule in CodeQL is constantly causing false positives, report it to the maintainers or adjust your local configuration.
- Policy as Code: As demonstrated in the Terraform example, shift toward managing your security policies as code. This makes your security posture transparent, auditable, and version-controlled.
- Stay Updated: GitHub frequently releases new features for GHAS, such as new language support or improved detection algorithms. Keep an eye on the GitHub roadmap to ensure you are getting the most value out of your license.
Not read yet
Key Takeaways
To conclude this module, let's summarize the most important aspects of GHAS licensing and deployment that you should carry forward:
- Active Committer Model: Understand that your costs are driven by unique users who push code. Keep your user lists clean and audit them regularly to ensure you are not paying for inactive accounts.
- Phased Rollout: Never enable security features across the entire organization at once. Use a phased approach to manage the volume of security alerts and allow your team to build expertise in handling them.
- Baseline Your Security: When enabling scanning on existing repositories, use the baseline feature to ignore legacy vulnerabilities. This allows your team to focus on the future rather than the past.
- Infrastructure as Code: Use tools like Terraform or the GitHub API to manage your repository security settings. This ensures consistency and makes it easier to audit your configuration.
- Prioritize Developer Experience: Security tools work best when they are integrated into the workflow rather than acting as a barrier. Provide clear remediation guidance to keep developers engaged.
- Regular Financial Audits: Treat your GHAS license like any other cloud utility. Monitor your consumption, review your active committer list, and adjust your deployment scope to balance security needs with budgetary constraints.
By adhering to these principles, you will be well-equipped to navigate the complexities of GHAS licensing and build a robust, secure, and cost-effective development environment. Remember that the goal is not just to "check a box" for compliance, but to empower your developers to write safer, more resilient code every single day.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
Spend your points to unlock exam-style practice questions
Spend points to unlock GH-500 exam-style practice questions.
Practice for GH-500