I do not see sonarqube deocorate when PR is created in Github. I am using sonarqube actions to run the sonarscan.
However I am able to see the decorator in my PR if i do full checkout, but if I do the shallow checkout I do not see the decorator .? So why can’t I see the decorator in the PR if i do shallow checkout ?
First of all, what version/edition of SonarQube are you using?
In general, shallow clones are not supported for SonarQube as it relies on blame data to perform actions like detecting changed lines. When a shallow clone is detected, a warning is typically raised by the scanner and visible in the UI.
2024-08-06T17:25:54.1337359Z WARN: Could not find ref: master in refs/heads, refs/remotes/upstream or refs/remotes/origin
2024-08-06T17:26:03.6042108Z WARN: Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'.
That’s why all our examples/tutorials have shallow clones disabled!