-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add compile restic binary for CVE fix #5564
Add compile restic binary for CVE fix #5564
Conversation
e8a7519
to
5dc6244
Compare
Dockerfile
Outdated
@@ -29,7 +29,7 @@ WORKDIR /go/src/github.com/vmware-tanzu/velero | |||
|
|||
COPY . /go/src/github.com/vmware-tanzu/velero | |||
|
|||
RUN apt-get update && apt-get install -y bzip2 | |||
RUN apt-get update && apt-get install -y bzip2 git |
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.
Do you need this? The debian base image has git already as I remember.
And the bzip2 is no longer needed therefore the whole apt-get may be skipped.
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.
@reasonerjt Done
hack/build-restic.sh
Outdated
chmod +x ${restic_bin} | ||
cd ${build_path}/velero |
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.
This will break once the directory changes, how about switch to pushd/popd to make it more robust?
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.
yes, using pushd/popd
is much more better
5dc6244
to
e974cc3
Compare
@qiuming-best |
Codecov Report
@@ Coverage Diff @@
## release-1.9 #5564 +/- ##
============================================
Coverage 41.66% 41.66%
============================================
Files 214 214
Lines 18599 18599
============================================
Hits 7749 7749
Misses 10267 10267
Partials 583 583 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
a5824fb
to
c76a790
Compare
Signed-off-by: Ming <[email protected]>
c76a790
to
58f64e6
Compare
Signed-off-by: Ming [email protected]
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
Fix CVE scanned from TMC by compiling
restic
binary using a higher version of golangPlease indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.