mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
Update utils.go to look more like Gitleaks version
This commit is contained in:
+1
-1
@@ -116,10 +116,10 @@ func createScmLink(scmPlatform scm.Platform, remoteUrl string, finding report.Fi
|
|||||||
link := fmt.Sprintf("%s/src/%s/%s", remoteUrl, finding.Commit, filePath)
|
link := fmt.Sprintf("%s/src/%s/%s", remoteUrl, finding.Commit, filePath)
|
||||||
if finding.StartLine != 0 {
|
if finding.StartLine != 0 {
|
||||||
link += fmt.Sprintf("#lines-%d", finding.StartLine)
|
link += fmt.Sprintf("#lines-%d", finding.StartLine)
|
||||||
|
}
|
||||||
if finding.EndLine != finding.StartLine {
|
if finding.EndLine != finding.StartLine {
|
||||||
link += fmt.Sprintf(":%d", finding.EndLine)
|
link += fmt.Sprintf(":%d", finding.EndLine)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return link
|
return link
|
||||||
default:
|
default:
|
||||||
// This should never happen.
|
// This should never happen.
|
||||||
|
|||||||
Reference in New Issue
Block a user