Review · AISource: GitHub Docs
GitHub license compliance: dependency policies, package checks and enforcement
GitHub’s documentation describes a package-check API that checks dependency licenses against repository policy. Agent integration is one possible application. [1][2] Open Source License Compliance is available for Enterprise Cloud, including data-resident deployments; repository enforcement requires Code Security. [1] Setup requires the dependency graph and enterprise policy/ruleset management access, with policy configured under Policies > License compliance > Default policy. [3] The Enterprise Open-Source License Manager role receives notifications to review exception requests. [3] Package checks accept a purls array at /repos/OWNER/REPO/license-compliance/package-checks. The documentation examples use API version 2026-03-10. Fine-grained tokens need Repository license policy: read permission. [2]
Dependency license compliance
GitHub Open Source License Compliance
VerdictPromising
The documented workflow is promising, but setup effort, API-to-merge consistency and exception administration remain untested without an authenticated evaluation.
- Best for
- Enterprise Cloud teams with Code Security that want agents and reviewers to apply shared dependency license policies
- Pricing
- Enterprise starts at $21 per user/month, with a first-12-month qualification; Code Security costs $30 per active committer/month. [5][6] Confirm any additional license-compliance charges with GitHub.
Pros
- Package-check API support for GitHub App tokens and version-specific package URLs [2]
- Policy evaluation of transitive dependencies detected in the dependency graph [1]
- License exceptions for packages, licenses and package patterns at repository or enterprise scope [3]
- Effective policy visibility under Settings > Security > License policy [3]
- Documented license_compliance_policy audit events with create or modify actions [3]
Cons
- Repository enforcement requires Enterprise Cloud and Code Security [1]
- Evaluate annotations can impede merges when comment resolution is required [1]
- Findings do not automatically create exception requests [1]
- Policy-management API methods, permissions and audit payload fields unspecified in GitHub’s configuration guide [3]
Why it matters
GitHub says Active rulesets block pull requests introducing noncompliant dependencies, including transitive dependencies detected in the dependency graph. [1] GitLab offers comparable merge enforcement through Ultimate-tier license approval policies. [7] Snyk Open Source supports dependency license analysis. [8] According to GitHub, approved repository- or enterprise-scoped license exceptions close alerts. They also unblock pull requests if other required checks pass. [3] Evaluate mode does not directly block merges, but GitHub warns that its license annotations can prevent merging when branch protection requires comment resolution. [1]
Attribution
Sources
- 1GitHub DocsAbout open source license compliance
- 2GitHub DocsREST API endpoints for license compliance
- 3GitHub DocsConfiguring open source license policies
- 4GitHub ChangelogOctober 2026 changelog
- 5GitHubGitHub pricing
- 6GitHubGitHub Advanced Security
- 7GitLab DocsLicense approval policies
- 8Snyk User DocsTechnical specifications and guidance
Read the original source for full details and context.