kata-deploy: Create kata-static.tar with correct ownership

Pass --owner and --group to the tar invokation to prevent gihtub runner user
from leaking into release artifacts.

Fixes: #7832
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2023-09-04 17:22:47 +02:00
parent 8f2dae7b53
commit 18c94ebbe3

View File

@ -37,5 +37,5 @@ pushd ${tarball_content_dir}
popd
echo "create ${tar_path}"
(cd "${tarball_content_dir}"; tar cvfJ "${tar_path}" .)
(cd "${tarball_content_dir}"; tar cvfJ "${tar_path}" --owner=0 --group=0 .)
popd