Replace ORT with syft + grant for license compliance#183
Closed
timo-reymann wants to merge 3 commits into
Closed
Conversation
Replace the heavyweight ORT (OSS Review Toolkit) workflow with syft for SBOM/NOTICE generation and grant for license policy checking. This simplifies the license compliance pipeline while maintaining PR comments and policy enforcement. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
License Compliance Report✅ License policy check passed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #183 +/- ##
=======================================
Coverage 76.58% 76.58%
=======================================
Files 81 81
Lines 1930 1930
=======================================
Hits 1478 1478
Misses 318 318
Partials 134 134 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Replace the syft Go template approach with a shell script that fetches canonical license texts from the SPDX license-list-data repository. This is language-agnostic and works for any package manager syft supports. Also uploads the generated NOTICE file as a workflow artifact. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Read real LICENSE files from Go module cache and syft-detected locations on disk. Only fall back to canonical SPDX texts when actual files are unavailable. This gives proper copyright holder information. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Summary
notice.tmplGo template for generating NOTICE file via syft.grant.yamlwith allow-list based license policylicense-check.ymlworkflow with PR comments and policy enforcementTest plan
syft dir:. -o template -t ./notice.tmplgenerates correct NOTICE locallygrant check dir:.passes with no denied packages🤖 Generated with Claude Code