无法使用 dependency-check-sonar-plugin 获取 html 生成的报告
Posted
技术标签:
【中文标题】无法使用 dependency-check-sonar-plugin 获取 html 生成的报告【英文标题】:Can't get the html generated report using dependency-check-sonar-plugin 【发布时间】:2020-08-20 21:34:22 【问题描述】:我正在尝试生成一个 html 报告,以在本地声纳服务器上的 Windows 操作系统中使用 dependency-check-sonar-plugin 和 sonarqube 来识别项目“Angularjs 和 php”中的漏洞。运行此命令后:
sonar-scanner -Dsonar.projectKey=my-project-api -Dsonar.sources=. -
Dsonar.host.url=http://localhost:9000/ -Dsonar.dependencyCheck.htmlReportPath=dependency-check-
report.html
我仍然看不到报告并收到以下消息:“未找到 HTML 报告。请检查属性 sonar.dependencyCheck.htmlReportPath” 我错过了什么 ? 这是我的配置文件:
sonar.dependencyCheck.reportPath=dependency-check-report.html
sonar.dependencyCheck.htmlReportPath=ependency-check-report.html
sonar.dependencyCheck.severity.blocker=9.0
sonar.dependencyCheck.severity.critical=7.0
sonar.dependencyCheck.severity.major=4.0
sonar.dependencyCheck.severity.minor=0.0
【问题讨论】:
【参考方案1】:你的配置说:
sonar.dependencyCheck.htmlReportPath=ependency-check-report.html
缺少一个“d”-
【讨论】:
以上是关于无法使用 dependency-check-sonar-plugin 获取 html 生成的报告的主要内容,如果未能解决你的问题,请参考以下文章
无法使用 StorageClass 配置卷 - 无法获取存储帐户的存储密钥
Worklight Studio 和本地开发,有时无法使用 Java 类,有时无法使用 HTML 文件
Ubuntu 80端口无法使用-非root用户无法使用1024以下端口