cache icon indicating copy to clipboard operation
cache copied to clipboard

Consider making tar preserve permissions, uid, and guid

Open BYK opened this issue 11 months ago • 1 comments

Currently, tar is invoked as a regular user and without --preserve-permissions, and --same-owner. I wanted to cache some Docker volumes with action/cache and even after solving the permission issues with the Docker directories, I realized I needed --numeric-owner too as one of my Docker images were using uid:1000 without a corresponding user name on the host system. For these to work, tar also needs to be given s permission so it can set ownership information.

I created a custom action until (or if) this issue gets addressed but it is not ideal as it "wraps" the /usr/bin/tar binary to add these options.

I understand that these might be breaking changes so just adding an option for these would be great.

BYK avatar Jan 14 '25 23:01 BYK

It also does not preserve the ACL permissions on Windows causing file system errors.

EPERM: operation not permitted

aminya avatar Dec 04 '25 03:12 aminya