We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7030fa7 commit 4e6a16eCopy full SHA for 4e6a16e
1 file changed
lib/reporting/sarif.go
@@ -76,11 +76,11 @@ func messageText(ruleName string, filePath string) string {
76
trimmed := strings.TrimPrefix(finalPath, "git show ")
77
parts := strings.Split(trimmed, ":")
78
if len(parts) == 2 {
79
- return parts[1]
+ finalPath = strings.ReplaceAll(parts[1], "/", "\\")
80
}
81
82
83
- return fmt.Sprintf("%s has detected secret for file %s.", ruleName, filePath)
+ return fmt.Sprintf("%s has detected secret for file %s.", ruleName, finalPath)
84
85
86
func getResults(report Report) []Results {
0 commit comments