-
Notifications
You must be signed in to change notification settings - Fork 416
flux-source-controller/1.6.2-r1: cve remediation #58640
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
flux-source-controller/1.6.2-r1: cve remediation #58640
Conversation
<!--ci-cve-scan:must-fix: GHSA-557j-xg8c-q2mm-->
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The build is trying to update the 'oras.land/oras-go' package using gobump, but this package is not found in the go.mod file. The build is attempting to upgrade packages during the 'go/bump' step, but one of the specified packages doesn't exist in the project dependencies. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixes
Suggested ChangesFile: flux-source-controller.yaml
Replacement: Click to expand fix analysisAnalysisAnalyzing the three similar fixed build failures, I observe a consistent pattern: the
The key insight is that packages listed in the Click to expand fix explanationExplanationThe current build failure occurs because the build is trying to update the 'oras.land/oras-go' package using gobump, but this package is not found in the go.mod file. This is a common issue with the gobump tool, which requires packages being updated to either exist directly in the go.mod file or be explicitly specified in the 'replaces' parameter. By moving 'oras.land/oras-go@v1.2.6' from the 'deps' list to the 'replaces' parameter, we're telling the gobump tool to handle this package specially. This allows the build to update a package that might be a transitive dependency (not directly listed in go.mod) or handle it through the replace directive in the go.mod file. This approach closely mirrors Fix Example #2, which successfully resolved a similar issue with the golang.org/x/oauth2 package by properly handling it in the build configuration. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: David Negreira <david.negreira@chainguard.dev>
…00e5b80ef9402e26ed0418df
flux-source-controller/1.6.2-r1: fix GHSA-557j-xg8c-q2mm
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/flux-source-controller.advisories.yaml
"Breadcrumbs" for this automated service