Route Rust (.rs) files to gitlab-advanced-sast-ext

SAST template routing — Rust (.rs) → gitlab-advanced-sast-ext

Adds Rust to gitlab-advanced-sast-ext the same way Dart/Scala were added in Add Dart and Scala support to gitlab-advanced-s... (!253346 - merged) • Hua Yan • 19.4, across all five touchpoints (links point at the exact lines on this MR's branch):

Verification (customer-style)

The demo project is a Rust app. Its .gitlab-ci.yml is a single include: of this MR's template branch plus GITLAB_ADVANCED_SAST_ENABLED: 'true' (no custom jobs or scripts). Acceptance criterion: the template starts the gitlab-advanced-sast-ext job for the Rust repository. The job started and completed successfully, pulling the released image registry.gitlab.com/security-products/gitlab-advanced-sast-ext:0 (digest sha256:8a0d07e3…, analyzer v0.74.1, the first :0 tag with the Rust front-end). No project-level image override is in effect, so this is the actual customer path. semgrep-sast correctly did not start (.rs is not in its exist-rules).

Language Demo project Verification MR MR pipeline gitlab-advanced-sast-ext job
Rust gitlab-org/secure/tests/hyan/rust-vuln-demo https://gitlab.com/gitlab-org/secure/tests/hyan/rust-vuln-demo/-/merge_requests/3 https://gitlab.com/gitlab-org/secure/tests/hyan/rust-vuln-demo/-/pipelines/2867386038 https://gitlab.com/gitlab-org/secure/tests/hyan/rust-vuln-demo/-/jobs/16624968022 (success)

The verification .gitlab-ci.yml:

include:
  - remote: 'https://gitlab.com/gitlab-org/gitlab/-/raw/hua/sast-rust-routing/lib/gitlab/ci/templates/Jobs/SAST.gitlab-ci.yml'

variables:
  GITLAB_ADVANCED_SAST_ENABLED: 'true'
  AST_ENABLE_MR_PIPELINES: 'true'

Rust SAST support — stacked MRs (cross-linked)

Tracking issue: https://gitlab.com/gitlab-org/gitlab/-/work_items/627510 · Epic: https://gitlab.com/groups/gitlab-org/-/epics/21952

E2E (real MRs, Security-tab verified, latest):

Unit-test CI (green, latest): MR1 pipeline/test · MR2 pipeline/test · MR3 pipeline/test

co-authored-by: claude on claude-opus-4-8[1m]

Edited by Hua Yan

Merge request reports

Loading
Loading