-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/vulnreport: resolve package references with "go mod tidy".
When resolving vulnerable symbols, we create a temporary module which depends on the vulnerable package. Construct this temporary module's go.mod file with "go mod tidy" rather than "go get -u", which seems to do a better of job of resolving the dependencies for packages in the Kubernetes ecosystem. Allows vulnreport fix to work on GO-2023-1549. Change-Id: I50a71807411a3bab896b5982186d3e57fa1d941b Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/470376 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]>
- Loading branch information
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,17 @@ modules: | |
versions: | ||
- fixed: 2.7.0-rc.0+incompatible | ||
vulnerable_at: 2.6.2+incompatible | ||
vulnerable_at_requires: | ||
- github.com/Sirupsen/[email protected] | ||
packages: | ||
- package: github.com/docker/distribution/registry/handlers | ||
symbols: | ||
- copyFullPayload | ||
derived_symbols: | ||
- NewApp | ||
- blobUploadHandler.PatchBlobData | ||
- blobUploadHandler.PutBlobUploadComplete | ||
- catalogHandler.GetCatalog | ||
- imageManifestHandler.GetImageManifest | ||
- imageManifestHandler.PutImageManifest | ||
- package: github.com/docker/distribution/registry/storage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters