如何为 Angular 项目运行 OWASP 依赖项检查?

问题描述 投票:0回答:1

我正在尝试在 Angular 项目中使用它:

https://owasp.org/www-project-dependency-check/

我们在所有构建中使用https://jeremylong.github.io/DependencyCheck/data/database.html中解释的数据库服务器方法,但我无法为 Angular 项目触发此分析。

官方文档提供了这一点:

https://jeremylong.github.io/DependencyCheck/analyzers/nodejs.html

唉,我不知道如何使用角度构建。我也尝试过下面的命令,但也没有成功。

$ npm audit

我在这里缺少什么?

security dependencies owasp
1个回答
0
投票

安装 OWASP 依赖项检查器并将其添加到系统路径后:

  1. cd 进入 {Angular 项目目录}
  2. 运行ng构建
  3. 然后运行 dependency-check.bat --project {项目名称} --scan 。 ode_modules --out {目标目录} -f JSON -f HTML
© www.soinside.com 2019 - 2024. All rights reserved.