Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-05 12:07:37 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-05 12:07:37 +0300
commitcf98b5d69a84324cad0f23b786a0ec0937c90944 (patch)
tree96a65fa7e9f4560ca87fd3db9e9072ae46e14639 /doc/ci/variables
parent5fd38b5f78df56538ff4362f7be734c65891f2d8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/variables')
-rw-r--r--doc/ci/variables/index.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ci/variables/index.md b/doc/ci/variables/index.md
index eff726843b1..5a8cf340fd1 100644
--- a/doc/ci/variables/index.md
+++ b/doc/ci/variables/index.md
@@ -71,6 +71,10 @@ to execute scripts. Each shell has its own set of reserved variable names.
Make sure each variable is defined for the [scope you want to use it in](where_variables_can_be_used.md).
+By default, pipelines from forked projects can't access CI/CD variables in the parent project.
+If you [run a merge request pipeline in the parent project for a merge request from a fork](../pipelines/merge_request_pipelines.md#run-pipelines-in-the-parent-project-for-merge-requests-from-a-forked-project),
+all variables become available to the pipeline.
+
### Create a custom CI/CD variable in the `.gitlab-ci.yml` file
To create a custom variable in the [`.gitlab-ci.yml`](../yaml/index.md#variables) file,
@@ -303,6 +307,10 @@ The value of the variable must:
- The `~` character ([In GitLab 13.12](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61517) and later).
- Not match the name of an existing predefined or custom CI/CD variable.
+NOTE:
+Masking a CI/CD variable is not a guaranteed way to prevent malicious users from accessing
+variable values. To make variables more secure, you can [use external secrets](../secrets/index.md).
+
### Protect a CI/CD variable
You can protect a project, group or instance CI/CD variable so it is only passed