Skip to content

Commit

Permalink
Merge pull request #43 from PaloAltoNetworks/add-unimportant-as-sev
Browse files Browse the repository at this point in the history
add the unimportant severity
  • Loading branch information
sgordon46 authored Nov 30, 2023
2 parents f7396f8 + d614d68 commit dc36079
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14542,26 +14542,29 @@ function formatSarifToolDriverRules(results) {
* @returns string
*/
function convertPrismaSeverity(severity) {
// prisma: critical, high, important, medium, moderate, low
// prisma: critical, high, important, medium, moderate, unimportant, low
// gh: error, warning, note, none
switch (severity) {
case "critical":
return "error";
case "high":
return "warning";
case "important":
return "warning";
return "warning";
case "medium":
return "note";
case "moderate":
return "note";
return "note";
case "low":
return "none";
case "unimportant":
return "none";
default:
throw new Error(`Unknown severity: ${severity}`);
}
}


function formatSarifResults(results) {
// Only 1 image can be scanned at a time
const result = results[0];
Expand Down

0 comments on commit dc36079

Please sign in to comment.