{
  "version": "2.1.0",
  "$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
  "runs": [
    {
      "tool": {
        "driver": {
          "informationUri": "https://github.com/datreeio/datree",
          "name": "datree",
          "rules": [
            {
              "id": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
              "shortDescription": {
                "text": "Ensure each container image has a pinned (tag) version"
              },
              "help": {
                "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
                "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
              }
            },
            {
              "id": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
              "shortDescription": {
                "text": "Ensure each container has a configured memory limit"
              },
              "help": {
                "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
                "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
              }
            },
            {
              "id": "WORKLOAD_INVALID_LABELS_VALUE",
              "shortDescription": {
                "text": "Ensure workload has valid label values"
              },
              "help": {
                "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
                "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
              }
            },
            {
              "id": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
              "shortDescription": {
                "text": "Ensure each container has a configured liveness probe"
              },
              "help": {
                "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
                "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
              }
            }
          ],
          "semanticVersion": "1.0.0"
        }
      },
      "results": [
        {
          "ruleId": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
          "ruleIndex": 0,
          "message": {
            "text": "Incorrect value for key `image` - specify an image version to avoid unpleasant \"version surprises\" in the future"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "File1"
                },
                "region": {
                  "startLine": 10,
                  "endLine": 10
                }
              }
            }
          ]
        },
        {
          "ruleId": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
          "ruleIndex": 1,
          "message": {
            "text": "Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "File1"
                },
                "region": {
                  "startLine": 95,
                  "endLine": 95
                }
              }
            }
          ]
        },
        {
          "ruleId": "WORKLOAD_INVALID_LABELS_VALUE",
          "ruleIndex": 2,
          "message": {
            "text": "Incorrect value for key(s) under `labels` - the vales syntax is not valid so the Kubernetes engine will not accept it"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "File1"
                },
                "region": {
                  "startLine": 7,
                  "endLine": 7
                }
              }
            }
          ]
        },
        {
          "ruleId": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
          "ruleIndex": 3,
          "message": {
            "text": "Missing property object `livenessProbe` - add a properly configured livenessProbe to catch possible deadlocks"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "File1"
                },
                "region": {
                  "startLine": 22,
                  "endLine": 22
                }
              }
            }
          ]
        }
      ]
    }
  ]
}
