Evaluations
Access evaluation results
List evaluations
Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectNumber of results per page
50Example: 20Page number (starting from 0)
0Example: 4Filter by the entity associated with the evaluation
7bbca5d4-e9f2-4955-9b2a-019ec4d3645eFilter by the type associated with the evaluation
pipelineFilter by the action associated with the evaluation
onrunRetrieve results starting after this last-seen result
123Retrieve results created from this date
123Retrieve results created up to this date
123Retrieve results with these statuses
pass,warning,errorWhen true, evaluations from child scopes will be included in the results
falseExample: falseFilter by the execution Id associated with the evaluation
ehsPKtczTRO5CUDAt-NRHarness PAT key used to perform authorization
Assumenda dolorem.OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
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 offloaded to bucket storage
The evaluation ID to get the input signed URL for
1234Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Sint error odit impedit consequatur voluptas.OK response.
Expiry of the signed URL in milliseconds since epoch
1704067200000The signed URL for the evaluation input
Quibusdam eligendi voluptatem.BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
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 entity yaml
Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectEntity identifier
testPipelineNameEntity type
pipelinePossible values: Validate Async
trueConnector Reference
github_connectorRepo Name
testrepoLoad from fall back branch
trueGit Branch
mainHarness PAT key used to perform authorization
Sed aut voluptates sequi sapiente consequatur corporis.OK response.
entity yaml
x: asdfBadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
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"
}Find an evaluation by ID
The ID of the evaluation to retrieve
123Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Nostrum deserunt.OK response.
The result of a single evaluation
The Harness account in which the evaluation was performed
XRQAjvT37acOiXx9PRaQMFThe action that triggered evaluation
onrunThe time at which the evaluation was performed in Unix time millseconds
1636370209475An arbtrary user-supplied string that globally identifies the entity under evaluation
7bbca5d4-e9f2-4955-9b2a-019ec4d3645eAdditional arbtrary user-supplied metadta about the entity under evaluation
7bbca5d4-e9f2-4955-9b2a-019ec4d3645eThe ID of this evaluation
123The input provided at evaluation time
The Harness organization in which the evaluation was performed
test-orgThe Harness project in which the evaluation was performed
test-projectThe overall status of the evaluation indicating whether it passed
errorPossible values: The types of the entity under evaluation
pipeline,serviceBadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
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?