-
Notifications
You must be signed in to change notification settings - Fork 144
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
Root directory detection: OS root (/
on Unix or C:
on Windows) is identified as the project directory
#2148
Comments
To add to this, seeing same(/similar?) issue in our Github Action. We have also fixed the dotnet tool to version 7.1.1 pending a fix in 8.0 Snippet from our CI workflow
The CI fails on the last step Task output
|
We have also two community threads related to path issues that might be related: |
@wynandmurray and @rvdintercept could you please attach to the issue the logs in verbose mode? You can enable verbose mode by providing While doing this, please don't forget to trim the logs of any private information. |
With our CI running in verbose mode I see the following lines preceding the exception:
|
I see that your CI is running on an Ubuntu image and the root path detection determined that the base path directory is In v8 we modified the root path detection to work in the following way:
Since the problem in your case seems to be the root path detection, could you please try manually setting the Additionally, to better understand why the automatic detection does not work, could you please share:
|
Can confirm the scanner is not failing when I specify the projectBaseDir as In our workflow, from what I can see we run all of the commands from the same working directory, which follows the format The project structure within repository is that we have a
|
/
or C:
) is identified as the project directory
/
or C:
) is identified as the project directory/
on Unix or C:
on Windows) is identified as the project directory
Our privately-hosted SonarQube instance has been yielding the below error ever since we upgraded it to version 8.0.0 a few days ago:
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/lost+found' is denied.
When forcing our pipeline to make use of version 7.1.1 everything still works.
Some additional stack trace information:
Our YAML definition for the execution of this scan (with some omissions added):
The text was updated successfully, but these errors were encountered: