Skip to content

Update parsing of *_DISABLED variables in Secure vendored templates

Summary

For the Secure scanners, there are *_DISABLED variables that can be set to disable the job. SAST, for example: SAST_DISABLED: "true" Setting the value to false does not work as expected, and the job will get disabled anyway.

Update the *.latest.gitlab-ci.yml files and corresponding specs

Update the docs (in %16.0) after Transition latest security templates to stable ... (#388988 - closed) is merged

Steps to reproduce

This can be tested in the project settings under CI/Cd variables by adding the variable

It can also be tested by adding the variable in a GitLab CI yml file

Or test it from within a compliance pipeline by adding the variable there

What is the current bug behavior?

Regardless of setting of the variable the job will always get disabled (prevented from running)

Job does not run even when variable is set to false

What is the expected correct behavior?

When job is set to false the job should run

When entered in a compliance pipeline one will want to use this setting to prevent a user from disabling the job in the project

Edited by rossfuhrman