Skip to content

Commit

Permalink
linter appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail authored Jul 28, 2021
1 parent 48caa83 commit 0e756f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/audit/sarifformatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func buildSarifForInvalidEntries(usingDep bool, invalidEntries []types.Coordinat

func determineLocation(dep bool) *sarif.ArtifactLocation {
artifactLocation := sarif.NewArtifactLocation().WithUri("go.mod")
if dep == true {
if dep {
artifactLocation = sarif.NewArtifactLocation().WithUri("Gopkg.lock")
}
return artifactLocation
Expand All @@ -104,7 +104,7 @@ func buildSarifForAuditedEntries(usingDep bool, auditedEntries []types.Coordinat
CVSS Score of **{{.Score}} ({{.SonatypeSeverity}})**
Find more details here:
{{.URL}}`)
tmpl.Execute(&ruleHelpMarkdown, data)
_ = tmpl.Execute(&ruleHelpMarkdown, data)
var ruleHelpText = vuln.Cve + " " + vuln.Description + " " + vuln.Reference

rule := run.AddRule(vuln.ID).
Expand Down

0 comments on commit 0e756f5

Please sign in to comment.