Conversation
<!--ci-cve-scan:must-fix: GHSA-f83f-xpx7-ffpw-->
🛑 Build Failed: Compilation
Build Details
Root Cause Analysis 🔍The code is trying to use the function cryptoutils.ValidatePubKey which is not defined or accessible in the current context. This appears to be caused by a missing import, an API change in a dependency, or a version incompatibility issue. The error occurs in multiple locations within the github.com/sigstore/cosign/v3/pkg/cosign/keys.go file at lines 143, 152, 163, 168, and 173, indicating that the ValidatePubKey function from the cryptoutils package is not available. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: go.mod
Replacement: Content: File: Melange YAML pipeline
Replacement: Content: Click to expand fix analysisAnalysisNo similar past fixes were provided, so I cannot identify specific patterns from historical solutions. However, based on the error "undefined: cryptoutils.ValidatePubKey" occurring in github.com/sigstore/cosign/v3/pkg/cosign/keys.go, this appears to be a dependency version compatibility issue. The error suggests that the cryptoutils package API has changed or the function has been moved/renamed in a newer version of the sigstore dependencies. Click to expand fix explanationExplanationThe error indicates that the cryptoutils.ValidatePubKey function is not available in the current version of the sigstore/cosign dependency. This is likely due to API changes between major versions of cosign. The existing Melange YAML already shows a pattern of using go mod edit to replace problematic dependencies (as seen with the archiver replacement). By downgrading from cosign/v3 to cosign/v2 v2.2.4, we align with a more stable API that likely still contains the ValidatePubKey function. The fulcio dependency bump to v1.8.3 should remain compatible with cosign v2.2.4. This approach follows the established pattern in the build file of using specific dependency replacements to resolve compatibility issues. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
advisory merged |
zarf/0.67.0-r0: fix GHSA-f83f-xpx7-ffpw
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/zarf.advisories.yaml
"Breadcrumbs" for this automated service