For the complete documentation index, see llms.txt. This page is also available as Markdown.

Evaluations

Access evaluation results

get

List evaluations

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
per_pageinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 50Example: 20
pageinteger · int64Optional

Page number (starting from 0)

Default: 0Example: 4
entitystringOptional

Filter by the entity associated with the evaluation

Example: 7bbca5d4-e9f2-4955-9b2a-019ec4d3645e
typestringOptional

Filter by the type associated with the evaluation

Example: pipeline
actionstringOptional

Filter by the action associated with the evaluation

Example: onrun
last_seeninteger · int64Optional

Retrieve results starting after this last-seen result

Example: 123
created_date_frominteger · int64Optional

Retrieve results created from this date

Example: 123
created_date_tointeger · int64Optional

Retrieve results created up to this date

Example: 123
statusstringOptional

Retrieve results with these statuses

Example: pass,warning,error
includeChildScopesbooleanOptional

When true, evaluations from child scopes will be included in the results

Default: falseExample: false
execution_idstringOptional

Filter by the execution Id associated with the evaluation

Example: ehsPKtczTRO5CUDAt-NR
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Assumenda dolorem.
Responses
200

OK response.

application/json
get/api/v1/evaluations
GET /gateway/pm/api/v1/evaluations HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "account_id": "XRQAjvT37acOiXx9PRaQMF",
    "action": "onrun",
    "created": 1636370209475,
    "details": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      }
    ],
    "entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "id": 123,
    "input": "",
    "org_id": "test-org",
    "project_id": "test-project",
    "status": "error",
    "type": "pipeline,service"
  },
  {
    "account_id": "XRQAjvT37acOiXx9PRaQMF",
    "action": "onrun",
    "created": 1636370209475,
    "details": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      }
    ],
    "entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "id": 123,
    "input": "",
    "org_id": "test-org",
    "project_id": "test-project",
    "status": "error",
    "type": "pipeline,service"
  },
  {
    "account_id": "XRQAjvT37acOiXx9PRaQMF",
    "action": "onrun",
    "created": 1636370209475,
    "details": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      }
    ],
    "entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "id": 123,
    "input": "",
    "org_id": "test-org",
    "project_id": "test-project",
    "status": "error",
    "type": "pipeline,service"
  },
  {
    "account_id": "XRQAjvT37acOiXx9PRaQMF",
    "action": "onrun",
    "created": 1636370209475,
    "details": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "action": "onrun",
        "created": 1636669297674,
        "description": "Captures critical production policies",
        "details": [
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          },
          {
            "deny_messages": [
              "deployment stage 'example-stage' does not have a HarnessApproval step",
              "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
            ],
            "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
            "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
            "policy": {
              "account_id": "eBqAoNchMLKigC_qZ5EdC",
              "cache_response": {
                "cache_state": "STALE_CACHE",
                "is_sync_enabled": true,
                "last_updated_at": 1773917288158,
                "ttl_left": 258234442
              },
              "created": 1636669297674,
              "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_connector_ref": ".",
              "git_default_branch": "main",
              "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_default_branch_file_url": "",
              "git_default_branch_update_error": {
                "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
                "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
                "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
              },
              "git_default_branch_updated": 1636669297674,
              "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
              "git_file_url": "",
              "git_path": ".harness/policy.rego",
              "git_repo": "github.com/org/repo,omitempty",
              "identifier": "policy-1",
              "name": "Pipeline Approval",
              "org_id": "test-org",
              "parent_unique_id": "Aliquam est.",
              "polciy_size_in_bytes": 4204212102816286000,
              "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
              "policy_set_count": 3,
              "project_id": "test-project",
              "rego": "",
              "unique_id": "Ex consequuntur saepe.",
              "updated": 1636669297674
            },
            "policy_severity": "Warn & Continue",
            "status": "error"
          }
        ],
        "enabled": true,
        "identifier": "policyset-1",
        "name": "Production Policies",
        "org_id": "test-org",
        "project_id": "test-project",
        "status": "error",
        "type": "pipeline",
        "updated": 1636669297674
      }
    ],
    "entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
    "id": 123,
    "input": "",
    "org_id": "test-org",
    "project_id": "test-project",
    "status": "error",
    "type": "pipeline,service"
  }
]

Get signed URL for evaluation input

get

Get signed URL for evaluation input offloaded to bucket storage

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
evaluation_idinteger · int64Required

The evaluation ID to get the input signed URL for

Example: 1234
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Sint error odit impedit consequatur voluptas.
Responses
200

OK response.

application/json
expiresinteger · int64Required

Expiry of the signed URL in milliseconds since epoch

Example: 1704067200000
signed_urlstringRequired

The signed URL for the evaluation input

Example: Quibusdam eligendi voluptatem.
get/api/v1/evaluations/evaluation-input-signed-url/{evaluation_id}
GET /gateway/pm/api/v1/evaluations/evaluation-input-signed-url/{evaluation_id} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "expires": 1704067200000,
  "signed_url": "Non distinctio."
}
get

Get entity yaml

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
entityIdentifierstringRequired

Entity identifier

Example: testPipelineName
entityTypestring · enumRequired

Entity type

Example: pipelinePossible values:
validateAsyncbooleanOptional

Validate Async

Example: true
parentEntityConnectorRefstringOptional

Connector Reference

Example: github_connector
parentEntityRepoNamestringOptional

Repo Name

Example: testrepo
loadFromFallbackBranchbooleanOptional

Load from fall back branch

Example: true
branchstringOptional

Git Branch

Example: main
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Sed aut voluptates sequi sapiente consequatur corporis.
Responses
200

OK response.

application/json
yamlstringRequired

entity yaml

Example: x: asdf
get/api/v1/evaluations/getYaml
GET /gateway/pm/api/v1/evaluations/getYaml?entityIdentifier=testPipelineName&entityType=pipeline HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "yaml": "x: asdf"
}
get

Find an evaluation by ID

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idinteger · int64Required

The ID of the evaluation to retrieve

Example: 123
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Nostrum deserunt.
Responses
200

OK response.

application/json

The result of a single evaluation

account_idstringRequired

The Harness account in which the evaluation was performed

Example: XRQAjvT37acOiXx9PRaQMF
actionstringRequired

The action that triggered evaluation

Example: onrun
createdinteger · int64Required

The time at which the evaluation was performed in Unix time millseconds

Example: 1636370209475
entitystringRequired

An arbtrary user-supplied string that globally identifies the entity under evaluation

Example: 7bbca5d4-e9f2-4955-9b2a-019ec4d3645e
entity_metadatastringRequired

Additional arbtrary user-supplied metadta about the entity under evaluation

Example: 7bbca5d4-e9f2-4955-9b2a-019ec4d3645e
idinteger · int64Required

The ID of this evaluation

Example: 123
inputanyOptional

The input provided at evaluation time

org_idstringRequired

The Harness organization in which the evaluation was performed

Example: test-org
project_idstringRequired

The Harness project in which the evaluation was performed

Example: test-project
statusstring · enumRequired

The overall status of the evaluation indicating whether it passed

Example: errorPossible values:
typestringRequired

The types of the entity under evaluation

Example: pipeline,service
get/api/v1/evaluations/{id}
GET /gateway/pm/api/v1/evaluations/{id} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "account_id": "XRQAjvT37acOiXx9PRaQMF",
  "action": "onrun",
  "created": 1636370209475,
  "details": [
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "action": "onrun",
      "created": 1636669297674,
      "description": "Captures critical production policies",
      "details": [
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        },
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        },
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        }
      ],
      "enabled": true,
      "identifier": "policyset-1",
      "name": "Production Policies",
      "org_id": "test-org",
      "project_id": "test-project",
      "status": "error",
      "type": "pipeline",
      "updated": 1636669297674
    },
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "action": "onrun",
      "created": 1636669297674,
      "description": "Captures critical production policies",
      "details": [
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        },
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        },
        {
          "deny_messages": [
            "deployment stage 'example-stage' does not have a HarnessApproval step",
            "deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
          ],
          "error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
          "output": "{\n    \"deny\": [\n        \"deployment stage 'deploy' does not have a HarnessApproval step\"\n    ],\n    \"stages_with_approval\": []\n}",
          "policy": {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aperiam quod.",
            "polciy_size_in_bytes": 8751929130004460000,
            "policy_package_name": "Eum qui praesentium.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ullam quo libero illo officiis id quo.",
            "updated": 1636669297674
          },
          "policy_severity": "Warn & Continue",
          "status": "error"
        }
      ],
      "enabled": true,
      "identifier": "policyset-1",
      "name": "Production Policies",
      "org_id": "test-org",
      "project_id": "test-project",
      "status": "error",
      "type": "pipeline",
      "updated": 1636669297674
    }
  ],
  "entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
  "entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
  "id": 123,
  "input": "",
  "org_id": "test-org",
  "project_id": "test-project",
  "status": "error",
  "type": "pipeline,service"
}

Last updated

Was this helpful?