Skip to content

license-check: add distinctive deep/shallow modes of license scanning#2350

Merged
89luca89 merged 4 commits intochainguard-dev:mainfrom
sil2100:license-deep
Feb 18, 2026
Merged

license-check: add distinctive deep/shallow modes of license scanning#2350
89luca89 merged 4 commits intochainguard-dev:mainfrom
sil2100:license-deep

Conversation

@sil2100
Copy link
Member

@sil2100 sil2100 commented Feb 16, 2026

Right now license-check goes through the whole source tree trying to locate license files. This is good, but not really practical. For projects with a lot of vendored modules, this causes an explosion of licenses. Those licenses are important, yes, but just requesting their addition to our melange yaml file results in unreadable, bloated melange files that require constant maintenance. So let's introduce a --scan-type argument and for now default to shallow, which will only try to find the main top-most license of the project. We need a better scheme to support the rest, possibly by just running an external tool while creating the SBOM.

Signed-off-by: Łukasz 'sil2100' Zemczak <lukasz.zemczak@chainguard.dev>
Signed-off-by: Łukasz 'sil2100' Zemczak <lukasz.zemczak@chainguard.dev>
Signed-off-by: Łukasz 'sil2100' Zemczak <lukasz.zemczak@chainguard.dev>
@89luca89 89luca89 enabled auto-merge (squash) February 17, 2026 17:23
@89luca89 89luca89 merged commit a683ca1 into chainguard-dev:main Feb 18, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments