-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: #23915 podman build is not parsing sbom command line arguments #25647
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aguidirh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
please sign your commits https://github.com/containers/podman/blob/main/CONTRIBUTING.md#sign-your-prs |
@nalind ptal |
and you need to add a release note ... this is cli and is an outward change. and add a test |
Hi @baude,
I believe the commit is signed.
I did not add a release note because in the template it was saying to add it only in case of user-facing change, there is no user-facing change, only a bug fix for the flags that were already there. |
This looks exactly what |
2a7c139
to
a80f848
Compare
/retest |
@aguidirh: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
/retest |
57d0980
to
3e42437
Compare
the test |
also note the failures are all remote tests |
3e42437
to
a4a1da9
Compare
Thanks @baude, I will have a look why they are failing for the remote tests and try to fix them. |
a4a1da9
to
deb13a1
Compare
…rguments Signed-off-by: Alex Guidi <aguidi@redhat.com>
deb13a1
to
6cc56db
Compare
6cc56db
to
d6cdc5f
Compare
Signed-off-by: Alex Guidi <aguidi@redhat.com>
d6cdc5f
to
8c490e0
Compare
Great job @aguidirh , tests are passing. If you don't mind, it would be helpful to add some remote tests (see pkg/machine/e2e). Also, please squash your commits as CI tests were not passing for the first one. |
Issue Description
SBOM flags are not respected while podman build command.
At the same time buildah build command works as expected.
Fixes #23915
Steps to reproduce the issue
With the following Containerfile:
Run the following podman build:
Create a container with the image built in the previous step and check if the file sbom-spdx.json is inside of the container as requested:
Expected result:
Actual results:
Running the steps above with the code from this PR shows the expected result (the same as when using buildah), while running with the code from the main branch shows the actual result (with the bug).
Does this PR introduce a user-facing change?