[Backend] Support pipeline based scans
Summary
Security scan profiles with merge_request_pipeline or default_branch_pipeline triggers should automatically add scan jobs to pipelines and enable pipelines when no other configuration source exists.
Requirements
- Security scan profiles should add scan jobs to pipelines when configured with:
-
merge_request_pipelinetrigger -
default_branch_pipelinetrigger
-
- Pipelines should be automatically enabled if no other source is present:
- No CI file configuration
- No security policy configuration
- No Auto DevOps configuration
Scope
Phase 1 Focus: SAST
- Priority scanner:
gitlab-advanced-sast
Expected Behavior
When a security scan profile is configured with the specified triggers and no other pipeline sources exist, we should:
- Add the appropriate SAST scan jobs to the pipeline
- Enable pipeline execution
- Prioritize using the
gitlab-advanced-sastscanner over other SAST scanners
Description was generated using AI
Edited by Gal Katz