GuillaumeFalourd / clone-github-repo-action

Github Action to clone a public or private Github repository and access its content on others repositories' workflows ♻️
https://github.com/marketplace/actions/clone-github-repo-action
Apache License 2.0
47 stars 20 forks source link

Repo cloned as root #1

Closed paddatrapper closed 2 years ago

paddatrapper commented 2 years ago

The repo appears to be cloned as root instead of the runner user. For example a repo cloned and ls -la run within returns:

drwxr-xr-x  3 root   root   4096 Mar  3 12:17 .
drwxr-xr-x 11 runner docker 4096 Mar  3 12:17 ..
drwxr-xr-x  8 root   root   4096 Mar  3 12:17 .git
-rw-r--r--  1 root   root     76 Mar  3 12:17 index.yaml
GuillaumeFalourd commented 2 years ago

Hi @paddatrapper , thank you for opening this issue! 😄

This was related to the fact that the action was made using a Dockerfile without specifying the user.

I'll update the action to a v2, using composite action, to resolve this issue. That will also make the action compatible with other operating systems (it was only compatible with ubuntu runners until now).

You can check the new action runs here

Example: Screen Shot 2022-03-03 at 10 17 04