Skip to content
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

Unzipping: Set file attributes correctly? #18

Open
rajbos opened this issue May 12, 2021 · 4 comments
Open

Unzipping: Set file attributes correctly? #18

rajbos opened this issue May 12, 2021 · 4 comments

Comments

@rajbos
Copy link

rajbos commented May 12, 2021

Description

I'm running this action on ubuntu-latest where I am sharing a zipped directory between jobs by using upload and download artefact. After downloading the zipfile, the zipfile itself has 'runner docker' as owning user + owning user group settings.

After unzipping the zipfile, all files have 'root root' as owning user + owning user group. That means the runner cannot execute the files. I tried resetting the rights with chown, but I get an Operation not permitted error back.

I also checked the file rights before being zipped and all files where runner docker before zipping. The zipfile is also created with 'root root'.

Preferred solution

Zip and unzip the file with the rights of the runner process, and not with root root.

@montudor
Copy link
Owner

I'll have to look into this

@keyzj
Copy link

keyzj commented Jan 2, 2022

+1

@makivlach
Copy link

I can confirm this is still an issue.

@IgnisDa
Copy link

IgnisDa commented Apr 16, 2023

The problem is, since this is a Dockerfile action, it inherits the permissions from inside the docker container (which happens to be root here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants