GitHub made open source license compliance generally available on October 16, 2026, giving large organizations a way to enforce one dependency license policy across every repository and stop pull requests that break it. The feature is available to GitHub Enterprise Cloud customers, including those on data-resident GHEC, for repositories that have GitHub Code Security enabled.
It's been in public preview since June. The GA release adds license data for data-residency customers, audit log events for policy changes, policy management APIs and an endpoint that lets tools, including AI coding agents, ask whether a package is allowed before they add it. That last piece is the one I'd pay attention to.
How it works
GitHub built this on top of the dependency review action many teams already run in Actions. The difference is scope. Instead of each repository carrying its own allow list in a workflow file, an enterprise defines one license policy, and rulesets decide where it applies.
The mechanics, according to GitHub's changelog:
- An enterprise sets a license policy listing the licenses dependencies may use.
- A ruleset targets repositories with a new condition, "Require license compliance results before merging," which works like the existing code scanning merge conditions.
- When a developer opens a pull request that adds or modifies dependencies, the check runs automatically against each new or changed package.
- Each noncompliant dependency gets an annotation on the pull request.
- Those annotations have to be dealt with: remove or replace the dependency, amend the policy, or create a package exception.
GitHub's documentation adds that licenses can be picked from a built-in list or added manually by SPDX identifier, and that rulesets can be defined at the enterprise, organization and repository level. Exceptions for packages or licenses go through an approver.
Expand
GitHub changelog illustration for the open source license compliance release
A new role for the person who says yes
GitHub added a predefined enterprise role called Enterprise Open-Source License Manager. Whoever holds it reviews and approves closure requests, the "yes, we know, this one is fine" decisions that every legal and platform team ends up making. Policy managers get email notifications about pending requests and review them from the enterprise console.
This is a sensible split. The people who understand license risk are rarely the people with admin rights on every repository, and until now, handing them that power usually meant handing them too much.
What changed between preview and GA
GitHub listed four improvements since June:
- License information is now available for GitHub Enterprise Cloud data residency customers. That turns on the compliance feature for them, and it also fills the dependency graph and SBOM exports with license data, which is useful even if you never block a merge.
- License policy changes now emit audit log events, so changes can flow into an external system of record.
- New REST endpoints let you download, update and replace the enterprise license policy.
- A new endpoint checks whether packages comply with policy.
The policy APIs matter for anyone running governance as code. If your license policy already lives in a repository and goes through review, you can now sync it to GitHub instead of retyping it in the console.
Expand
A developer's desk with two monitors and a keyboard
The agent angle
GitHub says plainly that the package-check endpoint "enables coding agents to avoid recommending or incorporating packages which violate an organization's license usage policy." In other words, an AI assistant about to suggest a library can ask first.
This is the right place to solve the problem. An agent that adds a dependency with an incompatible license, and only finds out when a merge check fails, has wasted a review cycle. One that checks before writing the import doesn't. It also shifts license compliance left in the most literal sense: before the code exists.
The catch is that agents and IDE tools need to actually call the endpoint. GitHub's own Copilot is the obvious first candidate, but the changelog doesn't say whether Copilot already does this. Third-party agent vendors will need to integrate it themselves.
Where it fits next to dependency review
If you already run the dependency review action with a license allow list, you might wonder what you gain. Three things, mostly. Central policy instead of copies in every workflow file. A proper approval role and exception process instead of someone editing YAML. And audit events, which is what compliance teams actually ask for at the end of the year.
There are limits. This works on dependency changes in pull requests, so it won't retroactively clean up the licenses already in your codebase, though the SBOM and dependency graph data will help you find them. And as GitHub's documentation is careful to frame it, the check compares dependencies against your policy. It isn't a legal opinion on how you use a package, and the result is only as good as the policy you write.
Who can use it
This isn't a feature for everyone on GitHub. You need:
- GitHub Enterprise Cloud, including data-resident GHEC;
- GitHub Code Security enabled on the repositories you want to cover;
- someone with enterprise admin rights to set the policy and rulesets, and someone in the License Manager role to handle exceptions.
GitHub points to its "About open source license compliance" documentation for setup, and to the REST API docs for the dependency-graph endpoints. Discussion happens in the Code Security category of GitHub Community.
Expand
A computer desk set up with monitors in a home office
A rollout plan that won't anger your developers
Turning on a blocking merge check across an enterprise overnight is a fine way to make enemies. A smoother path looks like this:
- Write the policy with legal, starting from licenses you already accept.
- Export SBOMs from the dependency graph to see how many current dependencies would fail.
- Apply the ruleset to a handful of active repositories first and watch the annotations.
- Staff the License Manager role before you widen the rollout, so exception requests don't sit unanswered.
- Expand by organization once the false alarms are under control.
None of that is GitHub's official guidance. It's what tends to work when you add any new gate to a busy pipeline.
What it looks like from the developer's chair
Picture a routine change. A developer bumps a logging library and, in the process, pulls in a new transitive package whose license your policy doesn't allow. Before this feature, that change would probably merge, and someone in legal would discover it months later in an audit, if at all.
With a ruleset in place, the pull request gets an annotation naming the package and the problem. The developer now has three honest options. Swap the library for one with an acceptable license. Ask for an exception, which lands in front of the License Manager with an email notification. Or, if the policy itself is wrong, argue for changing it. What they can't do is merge and forget.
That's the real value here. License compliance stops being a quarterly scramble and becomes a small, visible decision made at the moment it's cheapest to make, by the person who introduced the dependency.
Questions to settle before you write the policy
The tooling is the easy part. The policy takes thought, and a few questions are worth answering up front:
- Do internal tools and shipped products need the same rules? Copyleft licenses that are fine for an internal script may be off-limits in software you distribute.
- How will you handle packages with dual licenses or license expressions that combine several terms?
- Who owns exceptions when the License Manager is on leave?
- How long does an exception last, and does anyone review it later?
None of these have one right answer. They do need an answer before you switch on a check that can block merges across hundreds of repositories.
Should you care?
If you're on GitHub Enterprise Cloud with Code Security and someone in legal keeps asking which licenses ship in your products, yes. This replaces spreadsheets and per-repo YAML with one policy, a real approval flow and audit events, and it does it inside the pull request where developers already work.
If you're on Team or Free plans, it isn't for you yet, and the dependency review action is still a decent stand-in.
The part I'd watch is the agent API. As more code gets written by assistants, a cheap "is this package allowed here?" call could prevent more license headaches than any merge gate ever will.
Frequently Asked Questions
Who can use GitHub's open source license compliance?
GitHub Enterprise Cloud customers, including data-resident GHEC, on repositories with GitHub Code Security enabled. It became generally available on October 16, 2026.
How does it block a pull request?
A ruleset with the "Require license compliance results before merging" condition checks new or changed dependencies against the enterprise license policy and annotates each noncompliant one. Those annotations must be resolved before merging.
What is the Enterprise Open-Source License Manager role?
It's a new predefined enterprise role for people who review and approve closure requests, such as exceptions for specific packages. Holders get email notifications about pending requests.
Is there an API?
Yes. GitHub added endpoints to download, update and replace the enterprise license policy, plus one that checks whether packages comply, which coding agents can call before adding a dependency.
Originally published on Mango Developer.



Top comments (0)