Skip to content

Commit

Permalink
adjust path for finding
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Dec 13, 2023
1 parent 15f2dcc commit 418779d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion probes/sastToolSnykInstalled/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ func Run(raw *checker.RawResults) ([]finding.Finding, string, error) {
for _, wf := range r.Workflows {
if wf.Type == checker.SnykWorkflow {
f, err := finding.NewWith(fs, Probe,
fmt.Sprintf("SAST tool installed: Snyk at location '%v'", wf.File.Path), nil,
"SAST tool installed: Snyk", nil,
finding.OutcomePositive)
if err != nil {
return nil, Probe, fmt.Errorf("create finding: %w", err)
}

Check warning on line 46 in probes/sastToolSnykInstalled/impl.go

View check run for this annotation

Codecov / codecov/patch

probes/sastToolSnykInstalled/impl.go#L45-L46

Added lines #L45 - L46 were not covered by tests
f = f.WithLocation(&finding.Location{
Path: wf.File.Path,
})
return []finding.Finding{*f}, Probe, nil
}
}
Expand Down

0 comments on commit 418779d

Please sign in to comment.