【问题标题】:Checkmarx scan through CLI plugin team ID errorCheckmarx 通过 CLI 插件团队 ID 扫描错误
【发布时间】:2023-03-14 06:09:01
【问题描述】:

我正在运行 CLI 插件来测试我的项目的扫描。这是示例命令:

runCxConsole.cmd Scan -v -ProjectName "CxServer\Test" -CxServer https://test -cxuser uname -cxpassword pword -locationtype folder -locationpath "C:\Users\Test" -preset "Checkmarx Default"

当我运行这个命令时,我收到了这个错误:

[2020-07-16 16:48:32,960 INFO ] Initializing Cx client [2020.2.20.SCA]
[2020-07-16 16:48:38,108 INFO ] Checkmarx server version [9.0.0.40085]. Hotfix [3].
[2020-07-16 16:48:38,109 INFO ] Logging into the Checkmarx service.
[2020-07-16 16:48:40,906 ERROR] Could not resolve team ID from team name: /CxServer

【问题讨论】:

    标签: plugins command-line-interface checkmarx secure-coding


    【解决方案1】:

    ProjectName 的参数值通常采用这种格式“\projectName”。您可以从General Properties 选项卡中获取项目名称

    runCxConsole.cmd Scan -v -ProjectName "**\projectName**" -CxServer https://test -cxuser uname -cxpassword pword -locationtype folder -locationpath "C:\Users\Test" -preset "Checkmarx Default"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 1970-01-01
      • 2015-11-06
      • 1970-01-01
      相关资源
      最近更新 更多