Can sonarscanner for maven support secrets rules?

On my test project config 18 secrets rule

I execute the command below to analyze my project , the secret issue didn’t detected. Can sonarscanner for maven support secrets rules?

mvn clean verify sonar:sonar \
  -Dsonar.projectKey=lct_test \
  -Dsonar.projectName='lct_test' \
  -Dsonar.host.url=http://localhost:19000 \
  -Dsonar.token=sqp_c2e8364a7a3c93781c35b0054113dd82b82a19b1

Hey there.

Can you give an example file where you expect the secret to be detected? Is it a part of your Maven project, or in another directory?

thanks, I have found the root cause of the problem.

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