Skip to content

Commit d133a19

Browse files
committed
Added back extra SARIF properties ignored by Code Scanning, for information for other tooling
1 parent 040e334 commit d133a19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/malwareMatcher.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ export function buildSarifPerRepo(matches: MalwareMatch[], advisories: MalwareAd
212212
ruleIndex: ruleIds.indexOf(m.advisoryGhsaId),
213213
level: "error",
214214
message: { text: `Malware advisory ${m.advisoryGhsaId} matched package ${m.purl}${m.vulnerableVersionRange ? ` in range ${m.vulnerableVersionRange}` : ""}` },
215-
// properties: {
216-
// purl: m.purl,
217-
// ecosystem: m.ecosystem,
218-
// version: m.version,
219-
// vulnerableVersionRange: m.vulnerableVersionRange,
220-
// },
215+
properties: {
216+
purl: m.purl,
217+
ecosystem: m.ecosystem,
218+
version: m.version,
219+
vulnerableVersionRange: m.vulnerableVersionRange,
220+
},
221221
locations: [{ physicalLocation: { artifactLocation: { uri: `file:///${m.purl}` } } }]
222222
}));
223223
const sarif: SarifLog = {

0 commit comments

Comments
 (0)