Skip to content

Add license auditing tooling to the repository. - #14442

Merged
copybara-service[bot] merged 1 commit into
google:masterfrom
EtiennePerot:licensecheck
Sep 5, 2026
Merged

Add license auditing tooling to the repository.#14442
copybara-service[bot] merged 1 commit into
google:masterfrom
EtiennePerot:licensecheck

Conversation

@EtiennePerot

@EtiennePerot EtiennePerot commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

This adds a tool to pull in and analyze the licenses of all dependencies in the project, and ensures they are in a set of allowed licenses.

This ensures that if we add new deps down the line, they must be part of the set of allowed licenses.

Fix #14566

milantracy

This comment was marked as resolved.

// CheckPolicy returns a problem for every dependency whose licenses are
// neither all in policy.AllowedLicenses nor covered by an exception, and for
// every malformed, stale, or unnecessary exception.
func CheckPolicy(entries []Entry, policy *Policy) []string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the CheckPolicy here needs to be called inside or along with Verify to verify govenance/licensing.yaml.

The only place that CheckPolicy is called is licensecheck_test.go

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This adds a tool to pull in and analyze the licenses of all
dependencies in the project, and ensures they are in a set of allowed
licenses.

This ensures that if we add new deps down the line, they must be part
of the set of allowed licenses.
copybara-service Bot pushed a commit that referenced this pull request Sep 5, 2026
This adds a tool to pull in and analyze the licenses of all dependencies in the project, and ensures they are in a set of allowed licenses.

This ensures that if we add new deps down the line, they must be part of the set of allowed licenses.

Fix #14566

FUTURE_COPYBARA_INTEGRATE_REVIEW=#14442 from EtiennePerot:licensecheck a59d18e
PiperOrigin-RevId: 976560219
@copybara-service
copybara-service Bot merged commit 602040c into google:master Sep 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

third-party dependency audit

2 participants