-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse SARIF files into objects
- Loading branch information
1 parent
f9482e6
commit 5e5b65f
Showing
6 changed files
with
190 additions
and
7 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/sarif-2.1.0.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "reuse-me", | ||
"version": "0", | ||
"organization": "dev-build-deploy", | ||
"informationUri": "https://github.com/dev-build-deploy/reuse-me#README.md", | ||
"rules": [ | ||
{ | ||
"id": "FL001", | ||
"name": "MissingCopyrightInformation", | ||
"shortDescription": { | ||
"text": "Each Covered File MUST have Copyright associated with it.", | ||
"markdown": "Each Covered File **MUST** have **[Copright](https://reuse.software/faq/#what-is-copyright)** associated with it." | ||
} | ||
}, | ||
{ | ||
"id": "FL002", | ||
"name": "MissingLicenseInformation", | ||
"shortDescription": { | ||
"text": "Each Covered File MUST have License Information associated with it.", | ||
"markdown": "Each Covered File **MUST** have **[Licensing Information](https://reuse.software/faq/#what-is-license)** associated with it." | ||
} | ||
}, | ||
{ | ||
"id": "FL003", | ||
"name": "IncorrectLicenseFormat", | ||
"shortDescription": { | ||
"text": "The SPDX License Identifier ({0}) MUST be LicenseRef-[letters, numbers, \".\", or \"-\"] as defined by the SPDX Specification", | ||
"markdown": "The SPDX License Identifier ({0}) **MUST** be `LicenseRef-`[`letters`, `numbers`, `.`, or `-`] as defined by the [SPDX Specification](https://spdx.github.io/spdx-spec/v2.3/)" | ||
} | ||
}, | ||
{ | ||
"id": "PR001", | ||
"name": "MissingLicenseFile", | ||
"shortDescription": { | ||
"text": "The Project MUST include a License File for every license, but is missing {0}.", | ||
"markdown": "The Project **MUST** include a License File for every license, but is missing `${license}`." | ||
} | ||
}, | ||
{ | ||
"id": "PR002", | ||
"name": "IncorrectLicenseFile", | ||
"shortDescription": { | ||
"text": "The Project MUST NOT include License Files ({0}) for licenses under which none of the files in the Project are licensed.", | ||
"markdown": "The Project **MUST NOT** include License Files (`{0}`) for licenses under which none of the files in the Project are licensed." | ||
} | ||
}, | ||
{ | ||
"id": "PR003", | ||
"name": "DuplicateSpdxIdentifiers", | ||
"shortDescription": { | ||
"text": "The Project MUST NOT include duplicate SPDX identifiers ({0}).", | ||
"markdown": "The Project **MUST NOT** include duplicate SPDX identifiers (`{0}`)." | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"message": { | ||
"text": "The Project MUST include a License File for every license, but is missing MIT." | ||
}, | ||
"level": "error", | ||
"ruleId": "MissingLicense", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "reuse-me" | ||
} | ||
} | ||
} | ||
], | ||
"occurrenceCount": 1 | ||
}, | ||
{ | ||
"message": { | ||
"text": "Each Covered File MUST have Copyright associated with it." | ||
}, | ||
"level": "error", | ||
"ruleId": "MissingCopyrightInformation", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "./test.sarif" | ||
} | ||
} | ||
}, | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "./src/config/tool.json" | ||
} | ||
} | ||
} | ||
], | ||
"occurrenceCount": 2 | ||
}, | ||
{ | ||
"message": { | ||
"text": "Each Covered File MUST have License Information associated with it." | ||
}, | ||
"level": "error", | ||
"ruleId": "MissingLicenseInformation", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "./test.sarif" | ||
} | ||
} | ||
}, | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "./src/config/tool.json" | ||
} | ||
} | ||
} | ||
], | ||
"occurrenceCount": 2 | ||
} | ||
] | ||
} | ||
] | ||
} |
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