kyverno-notation-aws/1.1-r27: cve remediation#78107
kyverno-notation-aws/1.1-r27: cve remediation#78107octo-sts[bot] wants to merge 1 commit intomainfrom
Conversation
<!--ci-cve-scan:must-fix: GHSA-whqx-f9j3-ch6m-->
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The gobump tool is attempting to update the package github.com/go-jose/go-jose/v3@v3.0.4 but this package is not present in the go.mod file. This indicates a mismatch between the packages specified in the build configuration and the actual dependencies declared in the project's go.mod file. The package may have been removed from dependencies or the version specification is incorrect. 🔍 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: kyverno-notation-aws.yaml
Content: Click to expand fix analysisAnalysisBased on the three similar fixes, there's a clear pattern: when the go/bump tool fails with "package was not found on the go.mod file", the solution is to remove the problematic dependency from the deps list in the go/bump step. In all three cases, the fix involved removing packages that were not actually present in the project's go.mod file. Fix #0 shows the issue being resolved by adding the missing package to a separate go/bump step, Fix #1 shows removal of github.com/golang/glog and github.com/kyverno/kyverno (then re-adding kyverno with a different version), and Fix #2 shows removal of google.golang.org/grpc and helm.sh/helm/v3 from the deps list (with helm being moved to a different location). Click to expand fix explanationExplanationThe error message clearly indicates that github.com/go-jose/go-jose/v3 is not found in the go.mod file of the kyverno-notation-aws project. Based on the pattern from similar fixes, the most straightforward solution is to remove this dependency from the go/bump deps list since it's not actually used by the project. The go/bump tool can only update dependencies that are already declared in the project's go.mod file. If this package was previously a dependency but has been removed upstream, or if it was mistakenly included in the deps list, removing it will resolve the build failure. The other dependencies in the list appear to be legitimate and should remain. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
kyverno-notation-aws/1.1-r27: fix GHSA-whqx-f9j3-ch6m
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/kyverno-notation-aws.advisories.yaml
"Breadcrumbs" for this automated service
Inspected git repositories: https://github.com/nirmata/kyverno-notation-aws@v1.1