Skip to content

Commit 11453b1

Browse files
committed
json-parser: recognize SARIF format for semgrep output
1 parent 15bf46e commit 11453b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/parser-json-sarif.cc

+7
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ void SarifTreeDecoder::readScanProps(
130130
if (!version.empty())
131131
(*pDst)["analyzer-version-gitleaks"] = std::move(version);
132132
}
133+
else if (name == "Semgrep OSS") {
134+
// semgrep
135+
d->singleChecker = "SEMGREP_WARNING";
136+
137+
if (!version.empty())
138+
(*pDst)["analyzer-version-semgrep"] = std::move(version);
139+
}
133140
else if (boost::starts_with(name, "GNU C")) {
134141
// GCC
135142
d->singleChecker = "COMPILER_WARNING";

0 commit comments

Comments
 (0)