Skip to content

Commit ce43605

Browse files
committed
update sonarqube docs
1 parent 040e988 commit ce43605

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/content/supported_tools/parsers/api/sonarqube.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ In `Add API Scan Configuration`
3131
- If using SonarCloud, the organization ID can be used from step 1, but it
3232
can be overridden by supplying a different organization ID in the `Service key 2` input field.
3333

34+
## Disabling Hotspot Imports
35+
36+
By default, the SonarQube API Import includes both security issues and security hotspots. To import only security issues and exclude hotspots, set the following environment variable on your DefectDojo instance:
37+
38+
```
39+
DD_SONARQUBE_API_PARSER_HOTSPOTS=False
40+
```
41+
42+
For on-premise installations using the dojo-compose-cli:
43+
44+
```bash
45+
dojo-compose-cli environment add --key DD_SONARQUBE_API_PARSER_HOTSPOTS --value "False"
46+
dojo-compose-cli app stop && dojo-compose-cli app start
47+
```
48+
49+
Note that this setting is instance-wide and affects all SonarQube API imports. There is currently no per-tool-configuration or per-import toggle for hotspots. If you need hotspots for some projects but not others, you will need to build a custom middleware to filter results before importing.
50+
3451
## Multiple SonarQube API Configurations
3552

3653
In the import or re-import dialog, you can select which `API Scan

0 commit comments

Comments
 (0)