I’m facing an issue where SAST jobs are not being executed in my GitLab pipeline.
I’ve tried the following includes:
---
include:
- component: gitlab.com/components/sast/sast@main
---
include:
- template: Jobs/SAST.gitlab-ci.yml
---
include:
- template: Security/SAST.gitlab-ci.yml
However, none of them run when included in my pipeline file — all other jobs execute correctly, except the SAST ones.
When I validate the pipeline through Build > Pipeline editor > Validate tab, I get this message:
Pipeline simulation completed with errors
Simulated a git push event for a default branch. Rules, only, except, and needs job dependencies logic have been evaluated.
---
The resulting pipeline would have been empty. Review the rules configuration for the relevant jobs.
---
Here’s my current pipeline file:
include:
- template: Security/SAST.gitlab-ci.yml
stages:
- test
It seems like the SAST jobs are not being added to the pipeline at all.