BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4d3b5d52
Commit
4d3b5d52
authored
Mar 30, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-15' into 'master'
Add tip about `CI_JOB_TOKEN` clone abilities with "new job permissions model" See merge request !10221
parents
bee8b242
feb7092e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
new_ci_build_permissions_model.md
doc/user/project/new_ci_build_permissions_model.md
+18
-0
No files found.
doc/user/project/new_ci_build_permissions_model.md
View file @
4d3b5d52
...
...
@@ -141,6 +141,7 @@ with GitLab 8.12.
With the new job permissions model, there is now an easy way to access all
dependent source code in a project. That way, we can:
1.
Access a project's dependent repositories
1.
Access a project's
[
Git submodules
][
gitsub
]
1.
Access private container images
1.
Access project's and submodule LFS objects
...
...
@@ -177,6 +178,22 @@ As a user:
access to. As an Administrator, you can verify that by impersonating the user
and retry the failing job in order to verify that everything is correct.
### Dependent repositories
The
[
Job environment variable
][
jobenv
]
`CI_JOB_TOKEN`
can be used to
authenticate any clones of dependent repositories. For example:
```
git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/myuser/mydependentrepo
```
It can also be used for system-wide authentication
(only do this in a docker container, it will overwrite ~/.netrc):
```
echo -e "machine gitlab.com\nlogin gitlab-ci-token\npassword ${CI_JOB_TOKEN}" > ~/.netrc
```
### Git submodules
To properly configure submodules with GitLab CI, read the
...
...
@@ -221,3 +238,4 @@ test:
[
triggers
]:
../../ci/triggers/README.md
[
update-docs
]:
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/update
[
workhorse
]:
https://gitlab.com/gitlab-org/gitlab-workhorse
[
jobenv
]:
../../ci/variables/#predefined-variables-environment-variables
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