scorecard/pkg/testdata/check2.sarif
Zxilly fc09963047
🐛 fix: correct sarif json schema url (#4170)
Signed-off-by: Zxilly <zxilly@outlook.com>
2024-06-13 10:26:36 -07:00

74 lines
2.6 KiB
Plaintext

{
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"automationDetails": {
"id": "supply-chain/local/ccbc59901773ab4c051dfcea0cc4201a1567abdd-17 Aug 21 18:57 +0000"
},
"tool": {
"driver": {
"name": "Scorecard",
"informationUri": "https://github.com/ossf/scorecard",
"semanticVersion": "1.2.3",
"rules": [
{
"id": "CheckNameID",
"name": "Check-Name",
"helpUri": "https://github.com/ossf/scorecard/blob/main/docs/checks.md#check-name",
"shortDescription": {
"text": "Check-Name"
},
"fullDescription": {
"text": "short description"
},
"help": {
"text": "short description",
"markdown": "**Remediation (click \"Show more\" below)**:\n\n- not-used1\n\n- not-used2\n\n\n\n**Severity**: High\n\n\n\n**Details**:\n\nlong description\n\n other line"
},
"defaultConfiguration": {
"level": "error"
},
"properties": {
"precision": "high",
"problem.severity": "error",
"security-severity": "7.0",
"tags": [
"tag1",
"tag2"
]
}
}
]
}
},
"results": [
{
"ruleId": "CheckNameID",
"ruleIndex": 0,
"message": {
"text": "score is 0: warn message\nClick Remediation section below to solve this issue"
},
"locations": [
{
"physicalLocation": {
"region": {
"startLine": 0,
"byteOffset": 0
},
"artifactLocation": {
"uri": "bin/binary.elf",
"uriBaseId": "%SRCROOT%"
}
},
"message": {
"text": "warn message"
}
}
]
}
]
}
]
}