Created
April 23, 2022 21:54
-
-
Save atombrella/8371135f661e48b465d666a01801a31d to your computer and use it in GitHub Desktop.
kube-score sarif output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.1.0", | |
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json", | |
"runs": [ | |
{ | |
"tool": { | |
"driver": { | |
"name": "kube-score", | |
"informationUri": "https://kube-score.com/", | |
"rules": [ | |
{ | |
"id": "pod-networkpolicy", | |
"shortDescription": { | |
"text": "Pod NetworkPolicy" | |
} | |
}, | |
{ | |
"id": "container-security-context-user-group-id", | |
"shortDescription": { | |
"text": "Container Security Context User Group ID" | |
} | |
}, | |
{ | |
"id": "container-image-tag", | |
"shortDescription": { | |
"text": "Container Image Tag" | |
} | |
}, | |
{ | |
"id": "pod-probes", | |
"shortDescription": { | |
"text": "Pod Probes" | |
} | |
}, | |
{ | |
"id": "container-security-context-readonlyrootfilesystem", | |
"shortDescription": { | |
"text": "Container Security Context ReadOnlyRootFilesystem" | |
} | |
}, | |
{ | |
"id": "container-resources", | |
"shortDescription": { | |
"text": "Container Resources" | |
} | |
}, | |
{ | |
"id": "container-ephemeral-storage-request-and-limit", | |
"shortDescription": { | |
"text": "Container Ephemeral Storage Request and Limit" | |
} | |
} | |
] | |
} | |
}, | |
"results": [ | |
{ | |
"ruleId": "pod-networkpolicy", | |
"level": "error", | |
"message": { | |
"text": "The pod does not have a matching NetworkPolicy" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-security-context-user-group-id", | |
"level": "error", | |
"message": { | |
"text": "Container has no configured security context" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-image-tag", | |
"level": "error", | |
"message": { | |
"text": "Image with latest tag" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "pod-probes", | |
"level": "error", | |
"message": { | |
"text": "Container is missing a readinessProbe" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-security-context-readonlyrootfilesystem", | |
"level": "error", | |
"message": { | |
"text": "Container has no configured security context" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-resources", | |
"level": "error", | |
"message": { | |
"text": "CPU limit is not set" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-resources", | |
"level": "error", | |
"message": { | |
"text": "Memory limit is not set" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-resources", | |
"level": "error", | |
"message": { | |
"text": "CPU request is not set" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-resources", | |
"level": "error", | |
"message": { | |
"text": "Memory request is not set" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
}, | |
{ | |
"ruleId": "container-ephemeral-storage-request-and-limit", | |
"level": "error", | |
"message": { | |
"text": "Ephemeral Storage limit is not set" | |
}, | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": { | |
"uri": "file:///home/mads/git/kube-score/score/testdata/pod-probes-all-missing.yaml" | |
}, | |
"region": { | |
"startLine": 1, | |
"endLine": 1 | |
} | |
} | |
} | |
], | |
"properties": { | |
"confidence": "High", | |
"severity": "High" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment