Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5361e31a
Commit
5361e31a
authored
Apr 30, 2021
by
Tim Poffenbarger
Committed by
Nick Gaskill
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include verbiage around supply chain attacks
parent
ab1e5eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
doc/ci/variables/README.md
doc/ci/variables/README.md
+9
-2
No files found.
doc/ci/variables/README.md
View file @
5361e31a
...
@@ -603,11 +603,18 @@ to enable the `restrict_user_defined_variables` setting. The setting is `disable
...
@@ -603,11 +603,18 @@ to enable the `restrict_user_defined_variables` setting. The setting is `disable
## Limit the environment scope of a CI/CD variable
## Limit the environment scope of a CI/CD variable
You can limit the environment scope of a variable by
By default, all CI/CD variables are available to any job in a pipeline. Therefore, if a project uses a
[
defining which environments
](
../environments/index.md
)
it can be available for.
compromised tool in a test job, it could expose all CI/CD variables that a deployment job used. This is
a common scenario in supply chain attacks. GitLab helps mitigate supply chain attacks by limiting
the environment scope of a variable. GitLab does this by
[
defining which environments and corresponding jobs
](
../environments/index.md
)
the variable can be available for.
To learn more about scoping environments, see
[
Scoping environments with specs
](
../environments/index.md#scoping-environments-with-specs
)
.
To learn more about scoping environments, see
[
Scoping environments with specs
](
../environments/index.md#scoping-environments-with-specs
)
.
To learn more about ensuring CI/CD variables are only exposed in pipelines running from protected
branches or tags, see
[
Protect a CI/CD Variable
](
#protect-a-cicd-variable
)
.
## Deployment variables
## Deployment variables
Integrations that are responsible for deployment configuration can define their own
Integrations that are responsible for deployment configuration can define their own
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment