[关闭]
@windmelon 2020-10-29T15:23:34.000000Z 字数 1474 阅读 1012

Klockwork Docker Service Setup

Enviroment Setup

Deployment

Config

REST api

List all projects of USERNAME

  1. [
  2. {
  3. "id": 1,
  4. "name": "tpm2-software"
  5. }
  6. ]

List all subproject of project_id

  1. [
  2. {
  3. "app_id": 1,
  4. "comp_id": "4",
  5. "name": "tpm2-tss"
  6. },
  7. {
  8. "app_id": 1,
  9. "comp_id": "3",
  10. "name": "tpm2-pytss"
  11. },
  12. {
  13. "app_id": 1,
  14. "comp_id": "2",
  15. "name": "tpm2-tools"
  16. },
  17. {
  18. "app_id": 1,
  19. "comp_id": "1",
  20. "name": "tpm2-abrmd"
  21. }
  22. ]

List klockwork scan result

  1. [
  2. {
  3. "app_id": 1,
  4. "comp_id": 1,
  5. "prod_id": 2,
  6. "name": "2",
  7. "updated_time": "2019-01-01(ww01.2)",
  8. "issues": "0",
  9. "critical": "0",
  10. "error": "0",
  11. "warning": "0",
  12. "review": "0"
  13. },
  14. {
  15. "app_id": 1,
  16. "comp_id": 1,
  17. "prod_id": 1,
  18. "name": "1",
  19. "updated_time": "2019-01-01(ww01.2)",
  20. "issues": "0",
  21. "critical": "0",
  22. "error": "0",
  23. "warning": "0",
  24. "review": "0"
  25. }
  26. ]

Insert scan result

  1. {"url":"https://github.com/tpm2-software/tpm2-tss","kw_scan_link":"https://<link-of-scan-result>.html"}

or

  1. {"url":"https://github.com/tpm2-software/tpm2-tss","file":<SELECTED FILE>}
  1. {"id":0,"op":"create","result":"ok","error":""}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注