add tags support for csv and sarif formats (#1176)

* add tags support for csv and sarif formats

* add tests
This commit is contained in:
eyalatox authored and GitHub committed 2023-06-15 07:16:23 -05:00
1 parent 3f894cbafc
commit 86197b0848
6 files changed
+22 -3

No files matched your search

+2 -2
View File
@@ -1,2 +1,2 @@
RuleID,Commit,File,SymlinkFile,Secret,Match,StartLine,EndLine,StartColumn,EndColumn,Author,Message,Date,Email,Fingerprint
test-rule,0000000000000000,auth.py,,a secret,line containing secret,1,2,1,2,John Doe,opps,10-19-2003,johndoe@gmail.com,fingerprint
RuleID,Commit,File,SymlinkFile,Secret,Match,StartLine,EndLine,StartColumn,EndColumn,Author,Message,Date,Email,Fingerprint,Tags
test-rule,0000000000000000,auth.py,,a secret,line containing secret,1,2,1,2,John Doe,opps,10-19-2003,johndoe@gmail.com,fingerprint,tag1 tag2 tag3
1 RuleID Commit File SymlinkFile Secret Match StartLine EndLine StartColumn EndColumn Author Message Date Email Fingerprint Tags
2 test-rule 0000000000000000 auth.py a secret line containing secret 1 2 1 2 John Doe opps 10-19-2003 johndoe@gmail.com fingerprint tag1 tag2 tag3
+7
View File
@@ -294,6 +294,13 @@
"author": "John Doe",
"date": "10-19-2003",
"commitMessage": "opps"
},
"properties": {
"tags": [
"tag1",
"tag2",
"tag3"
]
}
}
]