Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
1341a3db
提交
1341a3db
编辑于
3 years ago
作者:
Greg Myers
提交者:
Marcel Amirault
3 years ago
浏览文件
操作
下载
补丁
差异文件
Fix and improve compliance pipeline example
上级
3d823895
No related branches found
No related tags found
2 合并请求
!106
Draft: This MR is specified for doc sync check
,
!105
Draft:This MR is specified for docsynccheck, will not be merged
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
doc/user/project/settings/index.md
+31
-26
31 个添加, 26 个删除
doc/user/project/settings/index.md
有
31 个添加
和
26 个删除
doc/user/project/settings/index.md
+
31
−
26
浏览文件 @
1341a3db
...
@@ -87,59 +87,64 @@ Example `.compliance-gitlab-ci.yml`
...
@@ -87,59 +87,64 @@ Example `.compliance-gitlab-ci.yml`
# Allows compliance team to control the ordering and interweaving of stages/jobs.
# Allows compliance team to control the ordering and interweaving of stages/jobs.
# Stages without jobs defined will remain hidden.
# Stages without jobs defined will remain hidden.
stages
:
stages
:
-
pre-compliance
-
pre-compliance
-
build
-
build
-
test
-
test
-
pre-deploy-compliance
-
pre-deploy-compliance
-
deploy
-
deploy
-
post-compliance
-
post-compliance
variables
:
#
c
an be overriden by
a developer
's local .gitlab-ci.yml
variables
:
#
C
an be overrid
d
en by
setting a job-specific variable in project
's local .gitlab-ci.yml
FOO
:
sast
FOO
:
sast
sast
:
#
n
one of these attributes can be overriden by a
developer
's local .gitlab-ci.yml
sast
:
#
N
one of these attributes can be overrid
d
en by a
project
's local .gitlab-ci.yml
variables
:
variables
:
FOO
:
sast
FOO
:
sast
image
:
ruby:2.6
image
:
ruby:2.6
stage
:
pre-compliance
stage
:
pre-compliance
rules
:
rules
:
-
when
:
always
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when
:
never
-
when
:
always
# or when: on_success
allow_failure
:
false
allow_failure
:
false
before_script
:
before_script
:
-
"
#
No
before
scripts."
-
"
#
No
before
scripts."
script
:
script
:
-
echo "running $FOO"
-
echo "running $FOO"
after_script
:
after_script
:
-
"
#
No
after
scripts."
-
"
#
No
after
scripts."
sanity check
:
sanity check
:
image
:
ruby:2.6
image
:
ruby:2.6
stage
:
pre-deploy-compliance
stage
:
pre-deploy-compliance
rules
:
rules
:
-
when
:
always
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when
:
never
-
when
:
always
# or when: on_success
allow_failure
:
false
allow_failure
:
false
before_script
:
before_script
:
-
"
#
No
before
scripts."
-
"
#
No
before
scripts."
script
:
script
:
-
echo "running $FOO"
-
echo "running $FOO"
after_script
:
after_script
:
-
"
#
No
after
scripts."
-
"
#
No
after
scripts."
audit trail
:
audit trail
:
image
:
ruby:2.6
image
:
ruby:2.6
stage
:
post-compliance
stage
:
post-compliance
rules
:
rules
:
-
when
:
always
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when
:
never
-
when
:
always
# or when: on_success
allow_failure
:
false
allow_failure
:
false
before_script
:
before_script
:
-
"
#
No
before
scripts."
-
"
#
No
before
scripts."
script
:
script
:
-
echo "running $FOO"
-
echo "running $FOO"
after_script
:
after_script
:
-
"
#
No
after
scripts."
-
"
#
No
after
scripts."
include
:
# Execute individual project's configuration
include
:
# Execute individual project's configuration
(if project contains .gitlab-ci.yml)
project
:
'
$CI_PROJECT_PATH'
project
:
'
$CI_PROJECT_PATH'
file
:
'
$CI_CONFIG_PATH'
file
:
'
$CI_CONFIG_PATH'
ref
:
'
$CI_COMMIT_REF_NAME'
# Must be defined or MR pipelines always use the use default branch.
ref
:
'
$CI_COMMIT_REF_NAME'
# Must be defined or MR pipelines always use the use default branch.
...
@@ -187,7 +192,7 @@ section.
...
@@ -187,7 +192,7 @@ section.
You can now change the
[
Project visibility
](
../../../public_access/public_access.md
)
.
You can now change the
[
Project visibility
](
../../../public_access/public_access.md
)
.
If you set
**Project Visibility**
to public, you can limit access to some features
If you set
**Project Visibility**
to public, you can limit access to some features
to
**Only Project Members**
. In addition, you can select the option to
to
**Only Project Members**
. In addition, you can select the option to
[
Allow users to request access
](
../members/index.md#
prevent-users-from-
request
ing
-access-to-a-project
)
.
[
Allow users to request access
](
../members/index.md#request-access-to-a-project
)
.
Use the switches to enable or disable the following features:
Use the switches to enable or disable the following features:
...
@@ -350,7 +355,7 @@ to transfer a project.
...
@@ -350,7 +355,7 @@ to transfer a project.
You can transfer an existing project into a
[
group
](
../../group/index.md
)
if:
You can transfer an existing project into a
[
group
](
../../group/index.md
)
if:
-
You have at least
the
Maintainer
**
role in that group.
-
You have at least
**
Maintainer**
[
role
](
../../permissions.md#project-members-permissions
)
in that group.
-
You're at least an
**Owner**
of the project to be transferred.
-
You're at least an
**Owner**
of the project to be transferred.
-
The group to which the project is being transferred to must allow creation of new projects.
-
The group to which the project is being transferred to must allow creation of new projects.
...
@@ -457,7 +462,7 @@ To do so:
...
@@ -457,7 +462,7 @@ To do so:
1.
Confirm the action by typing the project's path as instructed.
1.
Confirm the action by typing the project's path as instructed.
NOTE:
NOTE:
Only project
O
wners have the
[
permissions
](
../../permissions.md#project-members-permissions
)
Only project
o
wners have the
[
permissions
](
../../permissions.md#project-members-permissions
)
to remove a fork relationship.
to remove a fork relationship.
## Monitor settings
## Monitor settings
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录