-
Notifications
You must be signed in to change notification settings - Fork 602
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
SYFT_PACKAGE_EXCLUDE_BINARY_OVERLAP_BY_OWNERSHIP=false is not working #2911
Comments
Thanks for the report @marinedayo -- I can confirm this on the latest Syft, 1.5.0, even with the base
... but none included with the aforementioned option:
|
Thanks for the reply. As you mentioned, other binaries are also installed with RPM packages in Rocky Linux, so it's the same thing. Syft v1.5.0:
Syft v1.3.0:
|
Looks like it is affected by this commit 4194a2c in v1.4.0. syft/internal/relationship/finalize.go Lines 12 to 28 in 4194a2c
Since I suggest a configuration like |
What happened:
SYFT_PACKAGE_EXCLUDE_BINARY_OVERLAP_BY_OWNERSHIP=false
is not working in Syft v1.4.0 or later.I am using Syft with
SYFT_PACKAGE_EXCLUDE_BINARY_OVERLAP_BY_OWNERSHIP=false
to outputjava
installed via RPM package as CycloneDX component typeapplication
.But it is not working. None of
application
type is output.It works fine when using Syft v1.3.0.
What you expected to happen:
Expect
java
andnode
, etc. installed via RPM package to be output as CycloneDX component typeapplication
.Steps to reproduce the issue:
For example, prepare the following container image named
myapp:latest
:Execute
syft
withSYFT_PACKAGE_EXCLUDE_BINARY_OVERLAP_BY_OWNERSHIP=false
:None of
application
type is output:Anything else we need to know?:
When it is
binary
, it becomesapplication
in CycloneDX format.https://github.com/anchore/syft/blob/v1.5.0/syft/format/internal/cyclonedxutil/helpers/component.go#L39-L42
Environment:
The text was updated successfully, but these errors were encountered: