Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

使用二进制客户端扫描中的参数怎么配置:分析方案模板ID(需要使用的分析方案模板ID)和怎么配置质量门禁 #1177

Open
fanky357 opened this issue Sep 4, 2024 · 3 comments

Comments

@fanky357
Copy link

fanky357 commented Sep 4, 2024

  • ./codepuppy localscan 使用这个并通过增加分析方案模板ID和设置质量门禁获取指定分析方案模板进行扫描并根据设置的质量门禁进行判断是否通过

Tasks

Preview Give feedback
No tasks being tracked yet.
@bensonhome
Copy link
Collaborator

@fanky357

  1. localscan -h可以查看参数,使用--scheme-template-id可以指定分析方案模板id
  2. localscan不会设置和判断门禁,只提供结果,可以自行通过读取结果json来判断。默认会输出结果数据到scan_status.json文件,可以通过--report参数指定。

@fanky357
Copy link
Author

fanky357 commented Sep 9, 2024

  • cd /opt/jenkins/scan-tools/tca-client
  • ./codepuppy localscan --team-name xxx --language Java --scheme-template-id 4 --branch develop_deb_V1.3.2 --source-dir /opt/jenkins/workspace/xx/standard/xx
    usage: codepuppy [-h] [-v] [-l LOG_FILE]
    {localscan,updatetool,start,quickscan,quickinit,task,help}
    ...
    codepuppy: error: unrecognized arguments: --scheme-template-id 4

@bensonhome
Copy link
Collaborator

@fanky357 这里纠正一下,localscan没有--scheme-template-id参数。如果在同一个仓库内使用,可以使用--scan-plan指定已经创建好的分析方案名称;如果需要不同仓库复用,可以同时使用--scan-plan(分析方案名称)和--ref-scheme-id(复用其他仓库已经创建好的分析方案id)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants