{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-save-signature-request-body-schema.json",
  "title": "SaveSignatureRequestBody",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-artifactsigning-api-openapi.yml#/components/schemas/SaveSignatureRequestBody",
  "x-stoplight": {
    "id": "xqsj8bysobufx"
  },
  "type": "object",
  "properties": {
    "rekor": {
      "$ref": "#/$defs/RekorLog"
    },
    "execution_context": {
      "$ref": "#/$defs/ExecutionDetail"
    },
    "artifact": {
      "$ref": "#/$defs/ArtifactModelPipeline"
    }
  },
  "$defs": {
    "ArtifactModelPipeline": {
      "title": "ArtifactModelPipeline",
      "x-stoplight": {
        "id": "61ctnoe7t4ss3"
      },
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "x-stoplight": {
            "id": "yefth9vlf9svq"
          }
        },
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "tv59jsryuwpbn"
          },
          "enum": [
            "image",
            "repository"
          ]
        },
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "1pqx5aj5zkzlf"
          }
        },
        "registry_url": {
          "type": "string",
          "x-stoplight": {
            "id": "2d0pchss1tcw3"
          }
        },
        "variant": {
          "$ref": "#/$defs/ArtifactVariant"
        },
        "tag": {
          "type": "string",
          "x-stoplight": {
            "id": "69micl0vn4rn8"
          }
        },
        "digest": {
          "type": "string",
          "x-stoplight": {
            "id": "6z1z7v5v1zv5z"
          }
        },
        "metadata": {
          "type": "object",
          "additionalProperties": true,
          "x-stoplight": {
            "id": "bcmiu856m2sf8"
          }
        },
        "source_id": {
          "type": "string",
          "x-stoplight": {
            "id": "fstrqsl3noow2"
          }
        }
      }
    },
    "ArtifactVariant": {
      "title": "ArtifactVariant",
      "x-stoplight": {
        "id": "uyb3jwhgs9wjh"
      },
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "2r8lmxejmwqbf"
          },
          "enum": [
            "tag",
            "branch",
            "gitTag",
            "commit"
          ],
          "description": "type of the variant of the artifact."
        },
        "value": {
          "type": "string",
          "x-stoplight": {
            "id": "hd1p3s7bugn88"
          },
          "description": "Value of the variant of the artifact."
        }
      }
    },
    "ExecutionDetail": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/ExecutionType"
        },
        "github": {
          "$ref": "#/$defs/GithubExecutionDetail"
        },
        "harness": {
          "$ref": "#/$defs/HarnessExecutionDetail"
        }
      }
    },
    "ExecutionType": {
      "type": "string",
      "enum": [
        "harness",
        "github"
      ]
    },
    "GithubExecutionDetail": {
      "title": "GithubExecutionDetail",
      "x-stoplight": {
        "id": "nfcbibnr1z2rw"
      },
      "type": "object",
      "properties": {
        "repository": {
          "type": "string",
          "x-stoplight": {
            "id": "sac861lasuewn"
          }
        },
        "github_action": {
          "type": "string",
          "x-stoplight": {
            "id": "l8azkn1th708h"
          }
        },
        "action_path": {
          "type": "string",
          "x-stoplight": {
            "id": "twcllxr8bibkc"
          }
        },
        "job_id": {
          "type": "string",
          "x-stoplight": {
            "id": "gxvhjwmosdutz"
          }
        },
        "run_id": {
          "type": "string",
          "x-stoplight": {
            "id": "cunrcn7ohnpy2"
          }
        },
        "workflow_ref": {
          "type": "string",
          "x-stoplight": {
            "id": "gnclwe27klokp"
          }
        },
        "runner_detail": {
          "$ref": "#/$defs/GithubRunner"
        }
      },
      "description": "Github Pipeline Execution Details"
    },
    "GithubRunner": {
      "title": "GithubRunner",
      "x-stoplight": {
        "id": "32axq2gn4gemv"
      },
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "x0aeloqpvaybd"
          }
        },
        "account_id": {
          "type": "string",
          "x-stoplight": {
            "id": "aod8pc43fmjbt"
          }
        }
      }
    },
    "HarnessExecutionDetail": {
      "title": "HarnessExecutionDetail",
      "x-stoplight": {
        "id": "26kpn09zundb0"
      },
      "type": "object",
      "properties": {
        "org": {
          "type": "string",
          "x-stoplight": {
            "id": "zf78rh1u21y55"
          }
        },
        "project": {
          "type": "string",
          "x-stoplight": {
            "id": "lghyhop0hsg0f"
          }
        },
        "pipeline_execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "svsw1myd4slwa"
          }
        },
        "pipeline_id": {
          "type": "string",
          "x-stoplight": {
            "id": "6ms1cohmjf8rv"
          }
        },
        "pipeline_name": {
          "type": "string",
          "x-stoplight": {
            "id": "qecka5f2dfvxx"
          }
        },
        "sequence_id": {
          "type": "string",
          "x-stoplight": {
            "id": "tvb3c7trq28pt"
          }
        },
        "step_id": {
          "type": "string",
          "x-stoplight": {
            "id": "bj8ul3cpt9061"
          }
        },
        "step_execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "eyon9kxjzpuu5"
          }
        },
        "step_name": {
          "type": "string",
          "x-stoplight": {
            "id": "li446ik3qfg8l"
          }
        },
        "stage_id": {
          "type": "string",
          "x-stoplight": {
            "id": "uk4e6msb1annk"
          }
        },
        "stage_execution_id": {
          "type": "string",
          "x-stoplight": {
            "id": "ltrcdcpqky4rv"
          }
        },
        "stage_name": {
          "type": "string",
          "x-stoplight": {
            "id": "n27q5wlhtrd65"
          }
        },
        "stage_type": {
          "type": "string",
          "x-stoplight": {
            "id": "22ha61i5fiwzc"
          },
          "description": "Stage type in which the step executed"
        },
        "runner_detail": {
          "$ref": "#/$defs/HarnessRunner"
        }
      },
      "description": "Harness Pipeline Execution Details"
    },
    "HarnessRunner": {
      "title": "HarnessRunner",
      "x-stoplight": {
        "id": "vfsaqcya7qwfx"
      },
      "type": "object",
      "properties": {
        "trigger_type": {
          "type": "string",
          "x-stoplight": {
            "id": "rzkmd5bqoc9r9"
          }
        },
        "trigger_by_id": {
          "type": "string",
          "x-stoplight": {
            "id": "b36ytjxzv2yq6"
          }
        },
        "trigger_by_name": {
          "type": "string",
          "x-stoplight": {
            "id": "a7g4t02vts8gf"
          }
        }
      }
    },
    "RekorLog": {
      "title": "RekorLogDataModel",
      "x-stoplight": {
        "id": "2tz0t40gohsnp"
      },
      "type": "object",
      "properties": {
        "hash": {
          "type": "string",
          "x-stoplight": {
            "id": "pw8nommavkh17"
          }
        },
        "t_log_index": {
          "type": "string",
          "x-stoplight": {
            "id": "3h63tu9ilxhaq"
          }
        },
        "signature": {
          "type": "string",
          "x-stoplight": {
            "id": "f2uvqh6uh4dj0"
          }
        },
        "entry_uuid": {
          "type": "string",
          "x-stoplight": {
            "id": "04859pdq51kvo"
          }
        },
        "signed_at": {
          "type": "string",
          "x-stoplight": {
            "id": "w0tobwpwa3kcs"
          }
        },
        "signed_by": {
          "type": "string",
          "x-stoplight": {
            "id": "x13syvivwlh3c"
          }
        }
      }
    }
  }
}