mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 15:38:29 +02:00
Remove variable SAST_DISABLED
This commit is contained in:
parent
c0cc714dce
commit
e94915c35f
2 changed files with 10 additions and 35 deletions
21
README.md
21
README.md
|
@ -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"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue