Skip to content

Commit

Permalink
fixes to be a valid sarif file
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Nov 20, 2023
1 parent ed9d7cf commit fc56aa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Zarn/Sarif.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package Zarn::Sarif {
tool => {
driver => {
name => "ZARN",
informationUri => "https://github.com/htrgouvea/zarn",
version => "0.0.8"
}
},
Expand All @@ -21,6 +22,7 @@ package Zarn::Sarif {

foreach my $info (@vulnerabilities) {
my $result = {
ruleId => $info -> {title},
message => {
text => $info -> {title}
},
Expand All @@ -31,7 +33,7 @@ package Zarn::Sarif {
},
region => {
startLine => $info -> {line},
endLine => $info -> {row}
startColumn => $info -> {rowchar}
}
}
}]
Expand Down

0 comments on commit fc56aa4

Please sign in to comment.