-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix: Fixing git-urls dependency using another fork of the repo #17715
Conversation
Thanks, @BKirov! Can you fix the DCO check? Instructions are in the details link of the failed check. |
Fixed @crenshaw-dev |
@@ -138,6 +138,7 @@ require ( | |||
github.com/tidwall/gjson v1.14.4 // indirect | |||
github.com/tidwall/match v1.1.1 // indirect | |||
github.com/tidwall/pretty v1.2.0 // indirect | |||
github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we should use a replace
rule to get rid of all the instances in github.com/whilp/git-urls
across our dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good idea, come to think of it @BKirov that's the only way to be sure we clear up your image scanners.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed , can you please approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. The vunlerable version is still showing up as an indirect dependency. Do you need two replaces?
github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect
bc87931
to
1d1b334
Compare
Add Shield.com as one of the users in the USER.md file Signed-off-by: suhas-chikkanna <[email protected]> Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Kostis (Codefresh) <[email protected]> Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
Signed-off-by: Boyan Kirov <[email protected]>
… Kirov <[email protected]> Signed-off-by: Boyan Kirov <[email protected]>
@crenshaw-dev @jannfis can you please approve |
@@ -138,6 +138,7 @@ require ( | |||
github.com/tidwall/gjson v1.14.4 // indirect | |||
github.com/tidwall/match v1.1.1 // indirect | |||
github.com/tidwall/pretty v1.2.0 // indirect | |||
github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. The vunlerable version is still showing up as an indirect dependency. Do you need two replaces?
github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect
@crenshaw-dev can you help with that ? where to put the second replace ? this line for the old github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect |
@BKirov I'm not super up on how go mod works, but I think you could just add it after the existing replace.
Yep, because it's a transient dependency. So we haven't quite eliminated the vulnerable code yet. |
So i am addint it like that ? @crenshaw-dev
go: github.com/chainguard-dev/[email protected] used for two different module paths (github.com/chainguard-dev/git-urls and github.com/whilp/git-urls)` |
go.mod
Outdated
@@ -298,6 +299,9 @@ replace ( | |||
github.com/golang/protobuf => github.com/golang/protobuf v1.4.2 | |||
github.com/grpc-ecosystem/grpc-gateway => github.com/grpc-ecosystem/grpc-gateway v1.16.0 | |||
|
|||
// Avoid CVE-2023-46402 | |||
github.com/whilp/git-urls v1.0.0 => github.com/chainguard-dev/git-urls v1.0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.com/whilp/git-urls v1.0.0 => github.com/chainguard-dev/git-urls v1.0.2 | |
github.com/whilp/git-urls => github.com/chainguard-dev/git-urls v1.0.2 |
Ah. That oughta do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't commit the suggestion here though, do it locally and then run go mod tidy.
@crenshaw-dev I am getting this locally and then here too : go: github.com/chainguard-dev/[email protected] used for two different module paths (github.com/chainguard-dev/git-urls and github.com/whilp/git-urls) |
Trying fresh here: #17732 |
Checklist: