Description
Summary
When Sonarqube ingests the gosec output file, generated sonarqube format, a warning is displayed indicating that the file has deprecated fields which will not be supported in the future.
Steps to reproduce the behavior
Run gosec on the project with these parameters:
gosec -fmt=sonarqube -out=.testreports/gosec-report.json ./... ;
Then run sonar scanner CLI with the following parameter in the config file:
sonar.externalIssuesReportPaths=.testreports/gosec-report.json
gosec version
Using the docker container, which reports the following:
Version: dev
Git tag:
Build date: 2024-05-14
Go version (output of 'go version')
v1.23.0
Operating system / Environment
Linux
Expected behavior
Analysis of gosec report to complete without errors or warnings.
Actual behavior
The following warning is displayed:
WARN: External issues were imported with a deprecated format which will be removed soon. Please switch to the newest format to fully benefit from Clean Code: https://docs.sonarsource.com/sonarcloud/enriching/generic-issue-data/