Skip to content

Commit

Permalink
use prefix rather than contains
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Dec 18, 2023
1 parent 418779d commit 026fe3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/raw/sast.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ var searchGitHubActionWorkflowSnyk fileparser.DoWhileTrueOnFileContent = func(pa
// Parse out repo / SHA.
uses := strings.TrimPrefix(e.Uses.Value, "actions://")
action, _, _ := strings.Cut(uses, "@")
if strings.Contains(action, "snyk/actions/") {
if strings.HasPrefix(action, "snyk/actions/") {
*paths = append(*paths, path)
}
}
Expand Down

0 comments on commit 026fe3f

Please sign in to comment.