// answer

Does GitHub now offer enterprise open source license compliance policies?

Short answer

Yes. GitHub now offers enterprise open source license compliance policies for eligible GitHub Enterprise Cloud customers with Code Security enabled, and they can be enforced with rulesets.

The harder question is who you do it with: Find collaborators

Does GitHub now offer enterprise open source license compliance policies

Yes. GitHub now offers open source license compliance for enterprise accounts, and it lets organizations define and enforce license policy for dependencies in repositories. GitHub describes it as an enterprise-wide policy feature, not just a repository setting.

The current GitHub Docs page says this feature is for organizations owned by an enterprise account with GitHub Code Security enabled. The same docs also say the feature is in public preview and subject to change, so it is real, but still moving.

The part people get wrong is thinking GitHub only tells you whether a dependency has a license. That is older behavior. The newer feature lets an enterprise define which licenses are allowed, then compare dependency changes against that policy when pull requests change package manifests.

GitHub’s enforcement model is ruleset-based. When a ruleset requires license compliance results before merging, GitHub checks both direct and transitive dependencies, reports violations, and blocks the pull request until the violation is resolved or approved through the exception flow.

The inconvenient part is governance. GitHub does not turn this into a legal decision for you. The configuration docs say the license categories are informational and do not constitute legal advice, and they tell teams to check with their legal team before setting policy.

Another detail people miss is scope. GitHub says you can define policy at enterprise scope, then layer organization or repository exceptions where needed. That is useful for large companies, but it also means the policy is not one flat switch. Someone has to own the baseline and the exceptions.

If you want the shortest practical answer, it is this: yes, GitHub now has enterprise open source license compliance policies, and they are meant to prevent noncompliant dependencies from merging into protected repositories.

The workflow is straightforward. An admin creates a baseline license policy, assigns Enterprise Open Source License Managers, targets repositories with rulesets, then reviews exception requests when a dependency does not match policy. That is the shape of the product as GitHub documents it.

What it does not do is replace your organization’s policy. GitHub provides enforcement and review tooling, but you still need to decide which licenses are acceptable, who can approve exceptions, and which repositories are in active enforcement mode.

For teams trying to roll this out, a good first step is to test one repository with a known dependency change, confirm that annotations appear, then confirm that the merge is blocked only where you expect it. GitHub’s docs explicitly describe that test step.

If you are comparing this with repository licenses, do not mix them up. A repository license file tells other people how they may use that project. GitHub’s enterprise license compliance feature is about whether your dependencies fit your internal policy.

For more context on how DevConnect fits into real testing workflows, see https://devconnectplatform.com. That is separate from GitHub’s policy feature, but it is useful if your release process also depends on test exchanges before shipping.

Bottom line: GitHub now does offer enterprise open source license compliance policies, but only for eligible enterprise customers, only with the right security feature set, and only as part of a governance process you still have to own.

If you need the exact rollout status, GitHub’s changelog says the feature is in public preview and available for GitHub Enterprise Cloud customers with GitHub Advanced Security Code Security licenses. That is the current public position, so treat it as a live feature with preview constraints.

The practical failure mode is easy to predict. If your policy is too strict, merges stall and developers work around the process. If it is too loose, exceptions become meaningless. The useful setup is the one your legal, security, and engineering owners can actually maintain.

Frequently asked questions

Who can use GitHub’s license compliance feature

GitHub’s docs say it is for organizations owned by an enterprise account with GitHub Code Security enabled.

Does it block merges automatically

Yes, when a ruleset is configured to require license compliance results before merging, GitHub blocks noncompliant pull requests until the issue is resolved or approved.

Is this the same as adding a license file to a repository

No. A repository license file describes rights for that codebase, while license compliance policy controls what dependency licenses your enterprise allows.

Is the feature final or still changing

GitHub says it is in public preview and subject to change, so teams should expect the feature to evolve.

Know someone stuck on this? Send them the answer.

Sources

Every link here was fetched and confirmed to resolve before this page went live.

More on this topic: Open source

Related questions

Not the question you had?

Ask it. Every source gets fetched and checked before anything goes up, so it takes a day or two, and questions that cannot be answered honestly do not get a page at all.

No account, no email address needed.

Looking for someone to build it with?

People on DevConnect post what they are building and what they are missing. You can browse projects, or say what you want to work on and let people come to you.