Fix snippet when using SAST_DISABLED

The job rules don't work correctly when
the first rule is not met and no pipeline
is created.
This commit is contained in:
Fabio Pitino 2023-08-18 10:12:23 +00:00
parent d620ae6189
commit bdd3ae0385

View file

@ -25,6 +25,7 @@ include:
rules:
- if: $SAST_DISABLED == "true" || $SAST_DISABLED == "1"
when: never
- when: always
```
Otherwise all SAST jobs will always run when applicable.