Fix false-positives in java/smtp/rule-SmtpClient.yml
What does this MR do?
This MR attempts to fix false-positives in the rule while remaining as close to its current behaviour as possible.
What are the relevant issue numbers?
Enhance sast-rule java_smtp_rule-SmtpClient (gitlab-org/gitlab#441973)
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 Dinesh Bolkensteyn