{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-cicdworkflow-listing-response-schema.json",
  "title": "CICDWorkflowListingResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-cicdworkflows-api-openapi.yml#/components/schemas/CICDWorkflowListingResponse",
  "x-stoplight": {
    "id": "tt2e1jm0ioc1x"
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "last_scan",
    "compliance_summary",
    "source"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Workflow Id"
    },
    "name": {
      "type": "string",
      "description": "Workflow Name"
    },
    "last_scan": {
      "type": "integer",
      "format": "int64"
    },
    "compliance_summary": {
      "$ref": "#/$defs/ComplianceEvaluationSummary"
    },
    "source": {
      "$ref": "#/$defs/WorkflowSource"
    }
  },
  "$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"
        }
      }
    },
    "WorkflowSource": {
      "title": "WorkflowSource",
      "x-stoplight": {
        "id": "tdne5ehs4aif7"
      },
      "type": "object",
      "description": "Represent Workflow Source",
      "required": [
        "name",
        "url",
        "type"
      ],
      "properties": {
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "al23pegshrknr"
          },
          "description": "Source Name"
        },
        "url": {
          "type": "string",
          "x-stoplight": {
            "id": "pz4qsjkmnmf3e"
          },
          "description": "Source URL"
        },
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "s2x2mpxkirx73"
          },
          "enum": [
            "GITHUB",
            "HARNESS"
          ],
          "description": "Workflow Source Type"
        }
      }
    }
  }
}