mirror of
https://github.com/ossf/scorecard.git
synced 2024-10-26 10:28:10 +03:00
fc09963047
Signed-off-by: Zxilly <zxilly@outlook.com>
157 lines
6.0 KiB
Plaintext
157 lines
6.0 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"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "CheckName2ID",
|
|
"name": "Check-Name2",
|
|
"helpUri": "https://github.com/ossf/scorecard/blob/main/docs/checks.md#check-name2",
|
|
"shortDescription": {
|
|
"text": "Check-Name2"
|
|
},
|
|
"fullDescription": {
|
|
"text": "short description 2"
|
|
},
|
|
"help": {
|
|
"text": "short description 2",
|
|
"markdown": "**Remediation (click \"Show more\" below)**:\n\n- not-used1\n\n- not-used2\n\n\n\n**Severity**: Medium\n\n\n\n**Details**:\n\nlong description\n\n other line 2"
|
|
},
|
|
"defaultConfiguration": {
|
|
"level": "error"
|
|
},
|
|
"properties": {
|
|
"precision": "high",
|
|
"problem.severity": "warning",
|
|
"security-severity": "4.0",
|
|
"tags": [
|
|
"tag1",
|
|
"tag2",
|
|
"tag3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "CheckName3ID",
|
|
"name": "Check-Name3",
|
|
"helpUri": "https://github.com/ossf/scorecard/blob/main/docs/checks.md#check-name3",
|
|
"shortDescription": {
|
|
"text": "Check-Name3"
|
|
},
|
|
"fullDescription": {
|
|
"text": "short description 3"
|
|
},
|
|
"help": {
|
|
"text": "short description 3",
|
|
"markdown": "**Remediation (click \"Show more\" below)**:\n\n- not-used1\n\n- not-used2\n\n\n\n**Severity**: Low\n\n\n\n**Details**:\n\nlong description\n\n other line 3"
|
|
},
|
|
"defaultConfiguration": {
|
|
"level": "error"
|
|
},
|
|
"properties": {
|
|
"precision": "high",
|
|
"problem.severity": "recommendation",
|
|
"security-severity": "1.0",
|
|
"tags": [
|
|
"tag1",
|
|
"tag2",
|
|
"tag3",
|
|
"tag 4"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"ruleId": "CheckName2ID",
|
|
"ruleIndex": 1,
|
|
"message": {
|
|
"text": "score is 0: warn message\nClick Remediation section below to solve this issue"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"region": {
|
|
"charOffset": 3,
|
|
"snippet": {
|
|
"text": "some text"
|
|
}
|
|
},
|
|
"artifactLocation": {
|
|
"uri": "src/doc.txt",
|
|
"uriBaseId": "%SRCROOT%"
|
|
}
|
|
},
|
|
"message": {
|
|
"text": "warn message"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|