Sonarcloud: Ignore Issues in Blocks

  • ALM used : GitHub
  • CI system used : Custom using Git Action
  • Scanner command used when applicable: sonarsource/sonarcloud-github-action@master
  • Languages of the repository: Apex. Javascript, HTML, CSS

Issue observed:

When running Sonar Scan using SonarSource GitHub Action, configuration done in Sonar Cloud UI to Narrow the Scopes (Like Ignore Issues in Blocks, Ignore Issues on Multiple Criteria) are not respected. Not sure whether to set up these in

Is there any missing setup in my Sonar Cloud , is that the reason why pull requests files are not considered for Narrowed Scope?

Hello @vimalkarun and welcome to our Community!

The observed issue is happening only when the scan is executed by a GitHub Action? Did you got it working somehow, like using a scanner locally? If you did not got it working so far, can you paste the regular expression you are using for “Ignore issues in blocks”?

Also, if your project is public can you please share the URL with us?