Commit 4d363af9 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'hchouraria-docs-appsec-custom-stage-name-example' into 'master'

Improve overriding stages example

See merge request gitlab-org/gitlab!52808
parents 883b9284 b67356c5
......@@ -522,13 +522,28 @@ This error appears when the included job's stage (named `test`) isn't declared i
To fix this issue, you can either:
- Add a `test` stage in your `.gitlab-ci.yml`.
- Change the default stage of the included security jobs. For example, with SpotBugs (SAST):
- Override the default stage of each security job. For example, to use a pre-defined stage name `unit-tests`:
```yaml
include:
template: Security/SAST.gitlab-ci.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml
- template: Security/License-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
spotbugs-sast:
stages:
- unit-tests
dependency_scanning:
stage: unit-tests
license_scanning:
stage: unit-tests
sast:
stage: unit-tests
.secret-analyzer:
stage: unit-tests
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment