{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-repositories-summary-schema.json",
  "title": "RepositoriesSummary",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-coderepo-api-openapi.yml#/components/schemas/RepositoriesSummary",
  "x-stoplight": {
    "id": "owmyb6p9mw1y3"
  },
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "x-stoplight": {
        "id": "4nhfx0bl3oy9r"
      }
    },
    "vulnerabilities": {
      "$ref": "#/$defs/StoIssueCount"
    },
    "evaluation_summary": {
      "$ref": "#/$defs/ComplianceEvaluationSummary"
    }
  },
  "$defs": {
    "ComplianceEvaluationSummary": {
      "title": "ComplianceEvaluationSummary",
      "x-stoplight": {
        "id": "w6bm50zzc4qvm"
      },
      "type": "object",
      "properties": {
        "passed": {
          "type": "integer",
          "x-stoplight": {
            "id": "n9eea7yuwgj2p"
          }
        },
        "failed": {
          "type": "integer",
          "x-stoplight": {
            "id": "o6dgewchk2r19"
          }
        },
        "criticial_failures": {
          "type": "integer",
          "x-stoplight": {
            "id": "67cnmw5x5e0rg"
          }
        },
        "medium_failures": {
          "type": "integer",
          "x-stoplight": {
            "id": "8cd6cagnioamc"
          }
        },
        "high_failures": {
          "type": "integer",
          "x-stoplight": {
            "id": "lapzcy8o2c5ty"
          }
        },
        "low_failures": {
          "type": "integer",
          "x-stoplight": {
            "id": "v5iq4o1mkm0wo"
          }
        },
        "evaluation_time": {
          "type": "integer",
          "x-stoplight": {
            "id": "55r1eicwd51tm"
          },
          "format": "int64"
        }
      }
    },
    "PipelineDetails": {
      "title": "PipelineDetails",
      "x-stoplight": {
        "id": "rr6hfyn7yqya8"
      },
      "type": "object",
      "properties": {
        "org_id": {
          "type": "string",
          "x-stoplight": {
            "id": "tevm6bc13y3hi"
          },
          "description": "Organisation where pipeline is present."
        },
        "project_id": {
          "type": "string",
          "x-stoplight": {
            "id": "7s1mu1n1dan0s"
          },
          "description": "Project where pipeline is present."
        },
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "dl352mt8yqdxt"
          },
          "description": "Name of the pipeline."
        },
        "execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "tevm6bc13y3hi"
          },
          "description": "Execution Id of the pipeline."
        },
        "id": {
          "type": "string",
          "x-stoplight": {
            "id": "7s1mu1n1dan0s"
          },
          "description": "Id of the pipeline."
        },
        "triggered_by": {
          "type": "string",
          "description": "Name of who trigger the deployment pipeline"
        },
        "triggered_by_id": {
          "type": "string",
          "description": "Id of who trigger the deployment pipeline"
        },
        "triggered_at": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Time of trigger of the deployment pipeline",
          "format": "int64"
        },
        "triggered_type": {
          "type": "string",
          "description": "Trigger type of the deployment pipeline"
        },
        "status": {
          "type": "string",
          "x-stoplight": {
            "id": "qqz5h836cnx8e"
          },
          "enum": [
            "PASSED",
            "FAILED",
            "UNKNOWN"
          ]
        },
        "stage_execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "68i7ms2hxjctl"
          },
          "description": "Execution Id for the Stage"
        },
        "step_execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "22ha61i5fiwzc"
          },
          "description": "Execution Id for the step"
        },
        "stage_type": {
          "type": "string",
          "x-stoplight": {
            "id": "22ha61i5fiwzc"
          },
          "description": "Stage type in which the step executed",
          "enum": [
            "BUILD",
            "DEPLOY",
            "SECURITY"
          ]
        }
      }
    },
    "StoIssueCount": {
      "title": "StoIssueCount",
      "x-stoplight": {
        "id": "f6ujzuy4ee24s"
      },
      "type": "object",
      "description": "The count of Security Issues, by severity code, for a given Harness Pipeline Execution along with this execution info",
      "properties": {
        "critical": {
          "type": "integer",
          "x-stoplight": {
            "id": "hr4evvvkdwlaj"
          },
          "description": "The number of Critical-severity Issues"
        },
        "high": {
          "type": "integer",
          "x-stoplight": {
            "id": "xku8fdplguqn8"
          },
          "description": "The number of High-severity Issues"
        },
        "ignored": {
          "type": "integer",
          "x-stoplight": {
            "id": "pugpn1qpfuiz2"
          },
          "description": "The number of Issues ignored due to Exemptions, and therefore not included in other counts"
        },
        "info": {
          "type": "integer",
          "x-stoplight": {
            "id": "uq1mu3ju7hqvj"
          },
          "description": "The number of Informational Issues"
        },
        "last_scanned": {
          "type": "string",
          "x-stoplight": {
            "id": "31o2aroslpv8t"
          },
          "description": "Timestamp at which the target variant was last scanned"
        },
        "low": {
          "type": "integer",
          "x-stoplight": {
            "id": "0ke8tj8nksxb0"
          },
          "description": "The number of Low-severity Issues"
        },
        "medium": {
          "type": "integer",
          "x-stoplight": {
            "id": "dgxoss72dtrpd"
          },
          "description": "The number of Medium-severity Issues"
        },
        "total": {
          "type": "integer",
          "x-stoplight": {
            "id": "dgxoss72dtrpd"
          },
          "description": "The number of total-severity Issues"
        },
        "target_id": {
          "type": "string",
          "x-stoplight": {
            "id": "77ehb4jdd7e4e"
          },
          "description": "Associated Target ID"
        },
        "target_name": {
          "type": "string",
          "x-stoplight": {
            "id": "qmyrjo5stdfwh"
          },
          "description": "Name of the Scan Target"
        },
        "target_variant_id": {
          "type": "string",
          "x-stoplight": {
            "id": "md8z2e8kl4sdb"
          },
          "description": "Associated Target Variant ID"
        },
        "target_variant_name": {
          "type": "string",
          "x-stoplight": {
            "id": "eky1hzk5ljwed"
          },
          "description": "Name of the Scan Target"
        },
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "6w9cfeu92rj4d"
          },
          "enum": [
            "image",
            "repository"
          ],
          "description": "Scan Target's type"
        },
        "tool": {
          "type": "string",
          "x-stoplight": {
            "id": "6w9cfeu92rj4d"
          },
          "description": "The name of the tool that performed the scan"
        },
        "execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "w8x5d831w1s0f"
          },
          "description": "Harness Execution ID"
        },
        "pipeline_id": {
          "type": "string",
          "x-stoplight": {
            "id": "knvaykwgq2syk"
          },
          "description": "Harness Pipeline Id"
        },
        "pipeline_details": {
          "$ref": "#/$defs/PipelineDetails"
        }
      }
    }
  }
}