2021-01-29 00:20:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Security::SecurityJobsFinder
|
|
|
|
#
|
|
|
|
# Used to find jobs (builds) that are related to the Secure products:
|
|
|
|
# SAST, DAST, Dependency Scanning and Container Scanning
|
|
|
|
#
|
|
|
|
# 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 SecurityJobsFinder < JobsFinder
|
|
|
|
def self.allowed_job_types
|
2023-06-20 00:43:36 +05:30
|
|
|
[:sast, :sast_iac, :breach_and_attack_simulation, :dast, :dependency_scanning, :container_scanning, :secret_detection, :coverage_fuzzing, :api_fuzzing, :cluster_image_scanning]
|
2021-01-29 00:20:46 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|