github.com/datreeio/datree@v1.9.22-rc/pkg/evaluation/printer_test_expected_outputs/sarif_output.sarif (about)

     1  {
     2    "version": "2.1.0",
     3    "$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
     4    "runs": [
     5      {
     6        "tool": {
     7          "driver": {
     8            "informationUri": "https://github.com/datreeio/datree",
     9            "name": "datree",
    10            "rules": [
    11              {
    12                "id": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
    13                "shortDescription": {
    14                  "text": "Ensure each container image has a pinned (tag) version"
    15                },
    16                "help": {
    17                  "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
    18                  "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
    19                }
    20              },
    21              {
    22                "id": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
    23                "shortDescription": {
    24                  "text": "Ensure each container has a configured memory limit"
    25                },
    26                "help": {
    27                  "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
    28                  "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
    29                }
    30              },
    31              {
    32                "id": "WORKLOAD_INVALID_LABELS_VALUE",
    33                "shortDescription": {
    34                  "text": "Ensure workload has valid label values"
    35                },
    36                "help": {
    37                  "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
    38                  "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
    39                }
    40              },
    41              {
    42                "id": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
    43                "shortDescription": {
    44                  "text": "Ensure each container has a configured liveness probe"
    45                },
    46                "help": {
    47                  "text": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)",
    48                  "markdown": "For information on how to fix this issue, see: [https://hub.datree.io/built-in-rules](https://hub.datree.io/built-in-rules)"
    49                }
    50              }
    51            ],
    52            "semanticVersion": "1.0.0"
    53          }
    54        },
    55        "results": [
    56          {
    57            "ruleId": "CONTAINERS_MISSING_IMAGE_VALUE_VERSION",
    58            "ruleIndex": 0,
    59            "message": {
    60              "text": "Incorrect value for key `image` - specify an image version to avoid unpleasant \"version surprises\" in the future"
    61            },
    62            "locations": [
    63              {
    64                "physicalLocation": {
    65                  "artifactLocation": {
    66                    "uri": "File1"
    67                  },
    68                  "region": {
    69                    "startLine": 10,
    70                    "endLine": 10
    71                  }
    72                }
    73              }
    74            ]
    75          },
    76          {
    77            "ruleId": "CONTAINERS_MISSING_MEMORY_LIMIT_KEY",
    78            "ruleIndex": 1,
    79            "message": {
    80              "text": "Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization"
    81            },
    82            "locations": [
    83              {
    84                "physicalLocation": {
    85                  "artifactLocation": {
    86                    "uri": "File1"
    87                  },
    88                  "region": {
    89                    "startLine": 95,
    90                    "endLine": 95
    91                  }
    92                }
    93              }
    94            ]
    95          },
    96          {
    97            "ruleId": "WORKLOAD_INVALID_LABELS_VALUE",
    98            "ruleIndex": 2,
    99            "message": {
   100              "text": "Incorrect value for key(s) under `labels` - the vales syntax is not valid so the Kubernetes engine will not accept it"
   101            },
   102            "locations": [
   103              {
   104                "physicalLocation": {
   105                  "artifactLocation": {
   106                    "uri": "File1"
   107                  },
   108                  "region": {
   109                    "startLine": 7,
   110                    "endLine": 7
   111                  }
   112                }
   113              }
   114            ]
   115          },
   116          {
   117            "ruleId": "CONTAINERS_MISSING_LIVENESSPROBE_KEY",
   118            "ruleIndex": 3,
   119            "message": {
   120              "text": "Missing property object `livenessProbe` - add a properly configured livenessProbe to catch possible deadlocks"
   121            },
   122            "locations": [
   123              {
   124                "physicalLocation": {
   125                  "artifactLocation": {
   126                    "uri": "File1"
   127                  },
   128                  "region": {
   129                    "startLine": 22,
   130                    "endLine": 22
   131                  }
   132                }
   133              }
   134            ]
   135          }
   136        ]
   137      }
   138    ]
   139  }