Repository navigation
Gate SBOM package licenses - #116
Merged
Merged
Conversation
validate --vex, GATECHECK_VEX, and the config's vex.files read OpenVEX and CycloneDX VEX. Grype, CycloneDX, Trivy, and osv-scanner findings marked not exploitable are dropped after the deny list, so they skip the KEV, EPSS, and severity rules. Statements that name packages match by package URL, and the latest statement wins. Fixes #102
The license config section checks Syft JSON and CycloneDX components against deny and allow glob patterns, with SPDX AND, OR, and WITH expressions evaluated. denyUnknown fails packages with no license, and packageRiskAcceptance skips packages by purl or name. Syft JSON now lists its packages and validates with these rules instead of erroring. Fixes #103
BacchusJackson
force-pushed
the
license-gating
branch
from
November 4, 2026 18:37
8692920 to
5d134d8
Compare
Deploying gatecheck-website with
|
| Latest commit: |
5d134d8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://245c4418.gatecheck-website.pages.dev |
| Branch Preview URL: | https://license-gating.gatecheck-website.pages.dev |
This branch was successfully deployed
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.
This adds a
licenseconfig section that fails Syft JSON and CycloneDX SBOMs when their packages use licenses you don't want.pkg/licensepackage, with an SPDX expression parser.ORpasses when either side passes,ANDneeds both, andX WITH Yis denied withXunless the fullWITHstring is allowed. Several license entries on one package must all pass.listandvalidate. Nowlistprints package, version, type, and licenses, andvalidateand bundles run the license rules.docs/licenses.md.Test fixtures are trimmed Syft and CycloneDX SBOMs of
alpine:3.20, made with the managed syft 1.55.0. The real binary on those SBOMs withdeny: [GPL-*]exits 1 and names the 8 GPL packages.This is stacked on #115 (VEX), because both add config sections. The diff includes that commit until #115 lands.
Fixes #103
🤖 Generated with Claude Code