Skip to content

Commit

Permalink
More accurate log line
Browse files Browse the repository at this point in the history
  • Loading branch information
t-edris committed Dec 18, 2023
1 parent dc7d48c commit 3f411df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion securityscanutils/securityscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,17 @@ func (s *SecurityScanner) initializeRepoConfiguration(ctx context.Context, repo
}
if useGithubWriter {
repo.issueWriter = issuewriter.NewGithubIssueWriter(githubRepo, s.githubClient, issuePredicate)
logger.Debugf("GithubIssueWriter configured with Predicate: %+v", issuePredicate)
} else if repo.Opts.OutputResultLocally {
repo.issueWriter, err = issuewriter.NewLocalIssueWriter(path.Join(repo.Opts.OutputDir, githubRepo.RepoName, "issue_results"))
if err != nil {
return err
}
logger.Debugf("LocalIssueWriter configured with Predicate: %+v", issuePredicate)
} else {
repo.issueWriter = issuewriter.NewNoopWriter()
logger.Debugf("NoopIssueWriter configured with Predicate: %+v", issuePredicate)
}
logger.Debugf("GithubIssueWriter configured with Predicate: %+v", issuePredicate)

repo.trivyScanner = NewTrivyScanner(executils.CombinedOutputWithStatus)

Expand Down

0 comments on commit 3f411df

Please sign in to comment.