what are you trying to achieve
SonarQube reported an issue on a PR and now the check on GitHub is failing. I want to ignore the issue so the check will be green - but I’m not sure how to achieve that.
what have you tried so far to achieve this
Google “how to ignore issues”
First of all, why would you want to ignore issues ?
If the issue is legitimate why would you want to ignore it. You should fix it. If you want to fix after the merge (not recommend) you just have to live with Failed PR check and merge anyway.
If the issue is not legitimate (eg a false positive), you can mark the issues as False Positive or Won’t Fix in SonarQube which will have the effect of ignoring them in the PR, and your PR check will pass
When you have Issue Administration permission on a project, you have pull down menus on issue Type (Code Smell, Bug, Severity), issue Severity (Blocker, Critical, Major, Minor, Info) and Issue status (Open, Confirmed, False Positive, Won’t Fix, Fixed) to perform manual changes, eg mark as False positive or Won’t Fix. The below screenshot shows the pulled down issue status menu
This Issue Administration permission should be used wisely and scarcely. If you abuse it by using it to artificially lower the importance of issues or even completely ignore them (eg “Won’t fix”) on a large scale, then you completely defeat the purpose of your code quality and security tool
In production, this is a permission probably only to be granted to senior developers/tech leads that should be the only one to perform those changes after some good thoughts.