Github action leave some file with user root in the workspace


I use the sonar github action, but when I added a new step on my pipeline I got a bunch of “permission denied” issues :

warning: failed to remove .scannerwork/xxxxxxxxxxxxx: Permission denied

I check on the github action dockerfile, you use the root user by default. I guess it is to prevent some issue with multiple runner you can face.

If you have an idea on how to prevent that … ( I’m tired, the only way I can find right now is to get the owner of the file and launch the scanner with this uid )

I reply myself: github ask container to be run as root. This is annoying.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.