-
Notifications
You must be signed in to change notification settings - Fork 418
flux-helm-controller/1.3.0-r3: cve remediation #58656
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-helm-controller/1.3.0-r3: cve remediation #58656
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, but this package is not listed in the go.mod file. The gobump tool requires packages to either exist in go.mod or be explicitly listed in the 'replaces' parameter. 🔍 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-helm-controller.yaml
Replacement: Click to expand fix analysisAnalysisThe pattern observed in similar fixed build failures involves addressing the mismatch between packages specified in the go/bump step and those present in the go.mod file. In all three examples, the solution involved one of the following approaches:
The common issue is that the go/bump tool requires packages being updated to either exist in the go.mod file or be explicitly listed in the 'replaces' parameter. When a package like oras.land/oras-go is specified in the deps list but isn't directly in go.mod (possibly being a transitive dependency), the build fails. Click to expand fix explanationExplanationThe current build failure occurs because the go/bump step is trying to update oras.land/oras-go, but this package is not directly listed in the go.mod file of the flux-helm-controller repository. The error message specifically states: "package oras.land/oras-go was not found on the go.mod file. Please remove the package or add it to the list of 'replaces'". The suggested fix moves oras.land/oras-go from the deps list to the replaces parameter. This approach is similar to Fix Example #2 where golang.org/x/oauth2 was handled through the replaces parameter. By adding oras.land/oras-go to the replaces list, we're telling the go/bump tool that even though this package isn't directly in go.mod, it should still be updated to the specified version. This solution addresses the root cause by providing the go/bump tool with the correct instructions for handling a package that's likely a transitive dependency (not directly in go.mod). The change is minimal and focused on addressing the specific error without unnecessary modifications to the build configuration. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Francesco Bartolini <francesco.bartolini@chainguard.dev>
flux-helm-controller/1.3.0-r3: fix GHSA-557j-xg8c-q2mm
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/flux-helm-controller.advisories.yaml
"Breadcrumbs" for this automated service