JRubics / poetry-publish

An action to build and publish python package to pypi (https://pypi.org/) using poetry (https://github.com/sdispater/poetry)
BSD 3-Clause "New" or "Revised" License
137 stars 17 forks source link

Docker USER is root #43

Open pjaol opened 12 months ago

pjaol commented 12 months ago

using JRubics/poetry-publish@v1.17

Running into problems signing artifacts, finding that my dist directory is root owned And it looks like the docker file is root based

-rw-r--r-- 1 runner docker 17067 Oct  7 21:59 LICENSE.md
-rw-r--r-- 1 runner docker  256 Oct 7 21:59 README.md
drwxr-xr-x 2 root   root    4096 Oct  7 21:59 dist

Looks like the default user is runner / docker from at least actions/checkout@v3

Suspect it's also the cause of a few other warnings like

WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting poetry