GitLab check
No Secret Detection or SAST job declared in the default-branch CI configuration
Trigger condition
In the default branch's merged CI/CD configuration (from GitLab's CI Lint API), no visible job declares an artifacts.reports.secret_detection or artifacts.reports.sast report. Either report type alone is sufficient to suppress this check. Hidden/template job definitions (name starts with '.') and a job whose first rules: entry is an unconditional when: never -- carrying none of GitLab's if:, changes:, or exists: predicate keys, never evaluated, only checked for presence -- are never counted, even if they declare a supported report; a job name, stage name, image name, or template reference alone is never sufficient on its own. A first rule gating when: never on changes: or exists: is just as conditional as one gating it on if:, so that job is still counted, as is a job with a later, final when: never fallback rule.
Evidence
States that no visible job declares a Secret Detection or SAST report in the default-branch CI configuration.
Impact
This is a static check of the default branch's merged CI/CD configuration -- it cannot establish which jobs actually run for a given pipeline, whether either report is actually produced by a run, or whether an external scanner or a downstream/child pipeline provides equivalent coverage outside this project's own CI configuration. Without a declared Secret Detection or SAST report, secrets committed to the repository or code-level vulnerabilities introduced on the default branch may go undetected by GitLab's own built-in scanning. See GitLab's Pipeline Secret Detection (https://docs.gitlab.com/user/application_security/secret_detection/pipeline/) and SAST (https://docs.gitlab.com/user/application_security/sast/) documentation.
Recommendation
Review whether this project should enable GitLab's Secret Detection and/or SAST analyzers for the default branch, and verify -- in the relevant pipeline contexts (e.g. a default-branch pipeline and, if applicable, merge request pipelines) -- that the enabled job(s) actually run and produce their report.
Important limitations
A static configuration check of the default branch's merged CI/CD YAML only -- it never determines which jobs actually run for a given pipeline, whether a report is actually produced, or whether external scanners or child pipelines provide equivalent coverage outside this project's own configuration. Reuses the existing CI Lint collection this project already performs for GL-CI-001 -- no additional request is made. Never reads a report's own declared artifact path, job script, or any CI/CD variable value; only the presence of a supported report key is checked.