In the Dockerfile I added "sleep 300". After 300 seconds the build context directory will be deleted by Podman but before that an unprivileged user on the host has access to a file that has permissions 4777
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.16 Via RHSA-2025:16724 https://access.redhat.com/errata/RHSA-2025:16724
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.18 Via RHSA-2025:16729 https://access.redhat.com/errata/RHSA-2025:16729