sonarcloud-github-action
sonarcloud-github-action copied to clipboard
Update cleanup.sh: Added input validation for projectBaseDir
Added input validation for PROJECTBASEDIR
If you don't set the input projectBaseDir it's causing an error like this:
Error: Access to the path '/home/runner/work/_temp/_github_workflow/event.json' is denied.
Not specifying projectBaseDir doesn't necessarily cause the above error. I think the real issue is somewhere else. FYI, we are about to release a separate fix for this.
@cody-simms-sonarsource can you share a bit more about this issue? defining PROJECTBASEDIR is indeed not fixing the problem for me
@gnuton The issue stems from the fact that permissions on files created in the docker image do not correctly map to users or groups on the host, which can cause "access denied" errors when deleting those files. As you mentioned, this has nothing to do with specifying a defining a PROJECTBASEDIR.
Thanks for your contribution @fdx-alberto-miranda ! As Cody mentioned, the fix proposed here doesn't relate to the issue you had. In addition, we recently released a change to make this property optional, therefore, I'm closing this PR.