diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 21:13:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 21:13:13 +0300 |
commit | efcaec8a140e2b93d1f43d5afd7a5c35cdd4dad7 (patch) | |
tree | f10a4a70e5c9213c4cdc7a55788e69f8850d899b /lib/gitlab/ci/reports | |
parent | e6a54b33a9712d7f1a995df47f678fbb78bcd6b7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/reports')
-rw-r--r-- | lib/gitlab/ci/reports/security/finding.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/ci/reports/security/report.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/ci/reports/security/finding.rb b/lib/gitlab/ci/reports/security/finding.rb index a27a5923180..7a81c471267 100644 --- a/lib/gitlab/ci/reports/security/finding.rb +++ b/lib/gitlab/ci/reports/security/finding.rb @@ -141,6 +141,10 @@ module Gitlab scanner <=> other.scanner end + def has_signatures? + signatures.present? + end + private def generate_project_fingerprint diff --git a/lib/gitlab/ci/reports/security/report.rb b/lib/gitlab/ci/reports/security/report.rb index 1ba2d909d99..417319cb5be 100644 --- a/lib/gitlab/ci/reports/security/report.rb +++ b/lib/gitlab/ci/reports/security/report.rb @@ -69,6 +69,10 @@ module Gitlab primary_scanner <=> other.primary_scanner end + + def has_signatures? + findings.any?(&:has_signatures?) + end end end end |