GitHub Adds License Compliance Checks Before Merge

GitHub Changelog image for open source license compliance public preview.GitHub Changelog
GitHub Changelog image for open source license compliance public preview.GitHub Changelog
Tools & Apps

GitHub has put open source license compliance into public preview, giving Enterprise Cloud teams ruleset-based checks that can block pull requests with noncompliant dependencies.

GitHub has launched open source license compliance in public preview. Confidence level: confirmed. The feature lets eligible Enterprise Cloud organizations define license policy and enforce it through branch rulesets before dependency changes merge.

GitHub license compliance preview image
GitHub license compliance preview image

Caption: GitHub Changelog image for the license compliance public preview. Source: GitHub.

What changed

GitHub Enterprise Cloud customers with GitHub Advanced Security Code Security licenses can now test open source license compliance. The preview adds an enterprise-wide license policy, repository targeting through rulesets, pull request annotations, and merge blocking when a dependency violates policy.

The feature extends dependency review. When a pull request changes package manifests, GitHub compares dependency changes, checks detected licenses against policy, and surfaces violations. Teams can resolve issues by replacing the dependency, amending the policy, or creating package exceptions.

Key takeaways

  • License compliance is now a public preview for eligible GitHub Enterprise Cloud organizations.
  • Enforcement runs through branch rulesets, including an active merge-blocking mode.
  • GitHub evaluates direct and transitive dependency data from the dependency graph.
  • A new enterprise role, Enterprise Open Source License Policy Manager, handles policy and exception work.
  • The preview is useful for platform, legal, and security teams that want licensing checks inside pull requests.
WorkflowWhat GitHub addsWho should careCaveat
Dependency reviewLicense policy checks for changed dependenciesAppSec and platform teamsRequires eligible GitHub licensing
Branch rulesetsMerge blocking for noncompliant licensesEngineering managersPreview behavior can change
Exception reviewPolicy manager role and closure workflowLegal and open source program officesNeeds a real approval process

Availability and access

GitHub says the preview is available now for all GitHub Enterprise Cloud customers with GitHub Advanced Security Code Security licenses. The docs describe the feature as public preview and subject to change.

Teams need dependency data, rulesets, and a license policy before this becomes useful. Evaluate mode can annotate pull requests without blocking merges, while active mode can block pull requests until violations are resolved.

Practical LinkLoot angle

This is a governance feature with direct developer-workflow impact. Instead of reviewing open source licenses after a release audit, teams can move the first check into the pull request where dependency changes happen.

The practical setup path is simple: start in evaluate mode on a representative set of repositories, review false positives and exception volume, then switch high-risk production repos to active blocking. If your team also uses AI coding tools, pair this with a dependency-review checklist from LinkLoot's agent tools hub: /guides/ai-agent-tools.

What to verify before you act

  • Confirm your organization has GitHub Enterprise Cloud and GitHub Advanced Security Code Security.
  • Check whether dependency graph data covers the ecosystems you rely on.
  • Decide who owns the Enterprise Open Source License Policy Manager role.
  • Start with evaluate mode before blocking merges in critical repositories.
  • Review exception policy with legal or open source program owners before rollout.

Source check

Confirmed by: GitHub's June 30 changelog announces the public preview, ruleset enforcement, policy manager role, and eligibility. GitHub Docs corroborate the workflow, scope, pull request behavior, and preview status.

Early signal / context: No community-only signal was needed for this post. The claim is based on GitHub-owned changelog and documentation.

FAQ

It is a public preview feature that checks dependency licenses against an enterprise policy.