-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix(vuln): report architecture for apk
packages
#4247
Conversation
Co-Authored-by: Sylvain Baubeau <lebauce@gmail.com>
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.
Thanks for your contribution. I left a question.
pkg/fanal/handler/dpkg/dpkg_test.go
Outdated
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.
What is this file for?
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.
Thanks for sharing. I remember removing this file manually but apparently I didn't push the change.
36e938c
to
45ff7cf
Compare
Co-Authored-by: Sylvain Baubeau <lebauce@gmail.com>
Do you have a command to generate the files under |
Yes, you can use
|
I think there might be an issue on I ran the command The integration test does not pass since I merged my branch with main. I suspect the issue was introduced in #4168 |
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.
@DmitriyLewen Can you take a look?
"DependsOn": [ | ||
"busybox@1.30.1-r2", | ||
"musl@1.1.22-r3" | ||
], | ||
"Layer": { | ||
"Digest": "sha256:9d48c3bd43c520dc2784e868a780e976b207cbf493eaff8c6596eb871cbd9609", |
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.
It is weird. It is gone.
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.
Looks like it is old issue, but all contributors manually updated golden files.
I continue to investigate issue.
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 created #4379 to fix this problem.
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.
#4379 got merged.
@AliDatadog Could you merge the main branch and recreate the golden files again?
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.
Thanks it seems to work now 👍
It is unclear why the integration tests failed here. |
Hello @AliDatadog How did you update golden files? |
Hi @DmitriyLewen, I tried to copy the
I am running the tests with a Mac M1. Perhaps I need to install some more dependencies. |
hello @AliDatadog
|
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.
LGTM
@AliDatadog Are you still facing any issues? |
Indeed, this test is the only one for which I have an error and |
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.
Thanks for your efforts.
Co-authored-by: Sylvain Baubeau <lebauce@gmail.com>
Description
The architecture field was always an empty string for
apk
packages. This PR sets the field correctly.Checklist