SonarCloud [ERROR]org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli)

I am running SonarCloud on an opensource project and running into this error

[ **ERROR** ] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar **(default-cli)** on project opensourceA: **Cannot invoke "org.sonar.api.batch.fs.InputFile$Status.ordinal()" because "status" is null** -> **[Help 1**

Any pointers, plz

@MomEngineer Are you scanning locally? If not, could you provide a link to the full scanner logs?

1 Like

I am having similar issue and following is the logs for the issue

https://github.com/divyakumarjain/bo-framework/commit/8244182d36e89ee7d4d2b13c23036c9ef073d682/checks/3307315222/logs

I solve it setting permission on the user that run the analysis.
Select the project → Project Settings → Permission

In my case I flagged all permission, but Execute Analysis should be enough.