Skip to content
代码片段 群组 项目
未验证 提交 cd3848bc 编辑于 作者: Russell Dickenson's avatar Russell Dickenson 提交者: GitLab
浏览文件

Merge branch 'kenneth-clarify-action-include-already-exists' into 'master'

Clarify actions if `include` line already exists

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/143449



Merged-by: default avatarRussell Dickenson <rdickenson@gitlab.com>
Approved-by: default avatarRussell Dickenson <rdickenson@gitlab.com>
Co-authored-by: default avatarKenneth Chu <ksiuhengchu@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -107,7 +107,8 @@ To include the DAST template: ...@@ -107,7 +107,8 @@ To include the DAST template:
1. On the left sidebar, select **Search or go to** and find your project. 1. On the left sidebar, select **Search or go to** and find your project.
1. Select **Build > Pipeline editor**. 1. Select **Build > Pipeline editor**.
1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. 1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. If an `include` line
already exists, add only the `template` line below it.
To use the DAST stable template: To use the DAST stable template:
......
...@@ -42,7 +42,8 @@ To enable IaC scanning of a project: ...@@ -42,7 +42,8 @@ To enable IaC scanning of a project:
1. On the left sidebar, select **Search or go to** and find your project. 1. On the left sidebar, select **Search or go to** and find your project.
1. Select **Build > Pipeline editor**. 1. Select **Build > Pipeline editor**.
1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. 1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. If an `include` line
already exists, add only the `template` line below it.
```yaml ```yaml
include: include:
......
...@@ -315,7 +315,8 @@ To enable SAST, you [include](../../../ci/yaml/index.md#includetemplate) ...@@ -315,7 +315,8 @@ To enable SAST, you [include](../../../ci/yaml/index.md#includetemplate)
the [`SAST.gitlab-ci.yml` template](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/SAST.gitlab-ci.yml). the [`SAST.gitlab-ci.yml` template](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/SAST.gitlab-ci.yml).
The template is provided as a part of your GitLab installation. The template is provided as a part of your GitLab installation.
Add the following to your `.gitlab-ci.yml` file: Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. If an `include` line
already exists, add only the `template` line below it.
```yaml ```yaml
include: include:
......
...@@ -144,7 +144,8 @@ your GitLab CI/CD configuration file is complex. ...@@ -144,7 +144,8 @@ your GitLab CI/CD configuration file is complex.
1. On the left sidebar, select **Search or go to** and find your project. 1. On the left sidebar, select **Search or go to** and find your project.
1. Select **Build > Pipeline editor**. 1. Select **Build > Pipeline editor**.
1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file: 1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file. If an `include` line
already exists, add only the `template` line below it.
```yaml ```yaml
include: include:
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册