-
Notifications
You must be signed in to change notification settings - Fork 418
spark-4.0/4.0.0-r0: cve remediation #57506
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
spark-4.0/4.0.0-r0: cve remediation #57506
Conversation
⛓️ Build Failed: Constraint Not Satisfied
Build Details
Root Cause Analysis 🔍The build detected license files that could not be confidently assessed, resulting in 'NOASSERTION' license types. Melange's license checking system requires all licenses to be properly identified, but found multiple unidentified licenses (like licenses/LICENSE-json-formatter.txt, licenses/LICENSE-matchMedia-polyfill.txt, licenses/LICENSE-vis-timeline.txt, etc.). This is causing license validation to fail. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: package.yaml
Replacement: Content: File: package.yaml
Content: Click to expand fix analysisAnalysisThis build failure is related to license validation in the Melange build system. The error "invalid license: NOASSERTION" indicates that the build system detected license files that it couldn't properly identify. The error mentions specific license files like "licenses/LICENSE-json-formatter.txt", "licenses/LICENSE-matchMedia-polyfill.txt", and "licenses/LICENSE-vis-timeline.txt" which need to be properly declared in the package metadata. The Melange build system requires all licenses to be properly identified and declared in the package definition. Click to expand fix explanationExplanationThe build failure is occurring because Melange's license validation is finding licenses that it cannot automatically classify (resulting in "NOASSERTION"), which violates its constraint that all licenses must be properly identified. The suggested changes address this issue in two ways:
This approach ensures that all licenses are properly collected, organized, and declared in a way that Melange can validate. The license mapping file is particularly important as it provides the explicit mapping that Melange needs to avoid the "NOASSERTION" error. The reason this works is that Melange's license validation requires each license to be properly identified and declared. By explicitly stating which licenses are present and providing a mapping for files that Melange couldn't automatically classify, we satisfy the validation constraints. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
advisory: wolfi-dev/advisories#20540 |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-57mq-pmr4-4pfr has the latest event type of "pending-upstream-fix": https://github.com/wolfi-dev/advisories/blob/main/spark-4.0.advisories.yaml |
spark-4.0/4.0.0-r0: fix GHSA-rhrv-645h-fjfh
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/spark-4.0.advisories.yaml
"Breadcrumbs" for this automated service