Log different messages depending on analyzeAll setting
What does this MR do?
Log different messages depending on analyzeAll setting
Previously, every run would log a subdirectory of the repository which matches the analyzer's path pattern. This was confusing when analyzeAll made it so all directories would be scanned anyway.
This commit updates logging so the matching subdirectory is printed only when analyzeAll is false. Otherwise, we log that the entire repository will be analyzed.
What are the relevant issue numbers?
Closes https://gitlab.com/gitlab-org/security-products/analyzers/semgrep/-/issues/5
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Zach Rice