Remove variable SAST_DISABLED

This commit is contained in:
Fabio Pitino 2023-05-03 11:41:24 +01:00
parent c0cc714dce
commit e94915c35f
2 changed files with 10 additions and 35 deletions

View file

@ -17,6 +17,16 @@ include:
where `<VERSION>` is the latest released tag or `main`.
If you want to leverage the `$SAST_DISABLED` variable to define or not the jobs conditionally use `include:rules`.
Otherwise all SAST jobs will always run when applicable:
```yaml
include:
- component: gitlab.com/gitlab-components/sast@main
rules:
- if: $SAST_DISABLED != "true"
```
### Inputs
| Input | Default value | Description |
@ -34,16 +44,5 @@ where `<VERSION>` is the latest released tag or `main`.
| Variable | Default value | Description |
| -------- | ------------- | ----------- |
| `SAST_DISABLED` | not set | Set to `true` to avoid running any SAST jobs |
### ToDos
- Move the use of `SAST_DISABLED` to the `include:`
```yaml
include:
- component: gitlab.com/gitlab-components/sast@main
inputs: { ... }
rules:
- if: $SAST_DISABLED != "true"
```