fortify - 在多个 Maven 项目上运行 Fortify 扫描

标签 fortify

我有多个项目由一个父 pom 绑定(bind)。

如果我使用 Maven 强化插件在父 pom 上运行强化扫描,则会生成每个项目的 fpr 文件。我想为所有项目生成一个 fpr 文件。是否可以 ?

谢谢并恭祝安康,
索拉夫

最佳答案

您想要做的是聚合构建。尝试为每个模块设置相同的构建 ID,然后将 -Dfortify.sca.toplevel.artifactId 作为父 POM 的 artifactID 传递。这应该为您提供一个 FPR 文件。它应该看起来像:

mvn clean
mvn -Dfortify.sca.buildId=ACMEPortal com.fortify.ps.maven.plugin:sca-maven-plugin:<version>:clean
mvn -Dfortify.sca.buildId=ACMEPortal package com.fortify.ps.maven.plugin:sca-maven-plugin:<version>:translate
mvn -Dfortify.sca.Xmx=800M -Dfortify.sca.buildId=ACMEPortal -Dfortify.sca.toplevel.artifactId=AcmePortal com.fortify.ps.maven.plugin:sca-maven-plugin:<version>:scan

关于fortify - 在多个 Maven 项目上运行 Fortify 扫描,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29804335/

相关文章:

node.js - 如何避免 Node child_process exec中的命令注入(inject)

alert - 惠普强化 : How define new issue alert

java - @InitBinder 不适用于值方法名称

Laravel 8 auth Attempting 和 Failed 事件未按预期触发

php - Laravel 8.8 中未找到类 'App\Providers\FortifyServiceProvider'

java - URLEncoder.encode(string, "UTF-8") 是一个糟糕的验证吗?

java - Mass Assignment : Insecure Binder Configuration Vulnerability?的解决方法是什么

jndi - 动态代码评估 : JNDI Reference Injection/Dynamic Code Evaluation: Code Injection

php - Laravel Fortify 验证错误不起作用

java - 针对经常被误用的身份验证的 Fortify 修复