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

rm: cannot remove 'README.md': Permission denied #3

Open
ghost opened this issue Jun 3, 2020 · 0 comments
Open

rm: cannot remove 'README.md': Permission denied #3

ghost opened this issue Jun 3, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2020

Hi!
I tried to do something similar to prevent self-hosted runners from filling up the filesystem and came across your action.

If I use the action I am getting a permission denied error on trying to remove the files. Apparently the docker run does not have sufficient access to the _work dir.
Can this be fixed somehow?

Action log from my workflow:

rm: cannot remove 'Dockerfile': Permission denied
rm: cannot remove 'README.md': Permission denied

Proposal:
Add a cleanup.sh to the image with the rm -rf command and call the cleanup.sh in the action.yml via run.post-entrypoint: '/cleanup.sh'. This ensures that the cleanup task is always run after the workflow is done, wether it fails or not.

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

No branches or pull requests

0 participants