-
Notifications
You must be signed in to change notification settings - Fork 193
ci: check dependency licenses #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
62869e7
ci: check dependency licenses
nabinchha e33bfdd
fix: handle dependency license expressions
nabinchha 9f237f3
fix: validate all license lock slices
nabinchha b048ee4
chore: remove email-validator license exception
nabinchha 322f72a
fix: declare license checker fallback
nabinchha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Permissive licenses that the Apache Software Foundation classifies as | ||
| # "Apache-like" (Category A). Values use SPDX identifiers after normalization. | ||
| # https://www.apache.org/legal/resolved.html#category-a | ||
| allowed_licenses = [ | ||
| "Apache-2.0", | ||
| "BSD-2-Clause", | ||
| "BSD-3-Clause", | ||
| "ISC", | ||
| "MIT", | ||
| "Zlib", | ||
| ] | ||
|
|
||
| # Existing dependencies outside the global whitelist are reviewed by package, | ||
| # version, and exact reported license. A version or license metadata change must | ||
| # be reviewed explicitly. | ||
| [exceptions.certifi] | ||
| reason = "Unmodified TLS certificate bundle installed as a separate transitive dependency." | ||
| reports = [{ version = "2026.2.25", license = "Mozilla Public License 2.0 (MPL 2.0)" }] | ||
|
|
||
| [exceptions.chardet] | ||
| reason = "Unmodified character-detection library installed as a separate runtime dependency." | ||
| reports = [{ version = "5.2.0", license = "GNU Lesser General Public License v2 or later (LGPLv2+)" }] | ||
|
|
||
| [exceptions.numpy] | ||
| reason = "Core numerical dependency with reviewed permissive license metadata in each locked Python slice." | ||
| reports = [ | ||
| { version = "2.2.6", license = "BSD License" }, | ||
| { version = "2.4.3", license = "BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0" }, | ||
| ] | ||
|
|
||
| [exceptions.pathspec] | ||
| reason = "Unmodified transitive dependency of sqlfluff installed as a separate package." | ||
| reports = [{ version = "1.0.4", license = "Mozilla Public License 2.0 (MPL 2.0)" }] | ||
|
|
||
| [exceptions.pillow] | ||
| reason = "Core image dependency under the permissive MIT-CMU license." | ||
| reports = [{ version = "12.3.0", license = "MIT-CMU" }] | ||
|
|
||
| [exceptions.regex] | ||
| reason = "Existing regex dependency containing code under the CNRI Python license." | ||
| reports = [{ version = "2026.2.28", license = "Apache-2.0 AND CNRI-Python" }] | ||
|
|
||
| [exceptions.tqdm] | ||
| reason = "Unmodified progress library installed as a separate transitive dependency." | ||
| reports = [{ version = "4.67.3", license = "MPL-2.0 AND MIT" }] | ||
|
|
||
| [exceptions.typing_extensions] | ||
| reason = "Python typing compatibility dependency under the PSF license." | ||
| reports = [{ version = "4.15.0", license = "PSF-2.0" }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tomliplaced indevgroup causesModuleNotFoundErroron Python 3.10 CI runThe
check-dependency-licensesmake target runsuv run --all-packages --no-dev --locked. Because--no-devexcludes thedevdependency group,tomliis not installed in that environment. On Python 3.10 the script reachesimport tomli as tomllib(line 18 ofscripts/check_dependency_licenses.py) and immediately crashes, making thedependency-licensesCI job always fail for the3.10matrix slot.A fix is to move
tomliout of thedevgroup β either into a dedicated non-dev group (e.g.scripts) and add--group scriptsto the make target, or into the root project'sdependencieswith the samepython_version < '3.11'marker.Prompt To Fix With AI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 322f72a. tomli is now declared in a dedicated license-check dependency group, and the isolated Make target explicitly requests that group while retaining --no-dev. The Python 3.10 locked license scan passes (90 packages checked), along with 12 focused tests and make check-all.