summaryrefslogtreecommitdiff
path: root/app/finders/security/license_compliance_jobs_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/security/license_compliance_jobs_finder.rb')
-rw-r--r--app/finders/security/license_compliance_jobs_finder.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/finders/security/license_compliance_jobs_finder.rb b/app/finders/security/license_compliance_jobs_finder.rb
new file mode 100644
index 00000000000..100f94b2cc7
--- /dev/null
+++ b/app/finders/security/license_compliance_jobs_finder.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+# Security::LicenseScanningJobsFinder
+#
+# Used to find jobs (builds) that are related to the License Management.
+#
+# Arguments:
+# params:
+# pipeline: required, only jobs for the specified pipeline will be found
+# job_types: required, array of job types that should be returned, defaults to all job types
+
+module Security
+ class LicenseComplianceJobsFinder < JobsFinder
+ def self.allowed_job_types
+ [:license_management, :license_scanning]
+ end
+ end
+end