You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/2.0/docs/pipelines/installation/viamachineusers.md
+18-14
Original file line number
Diff line number
Diff line change
@@ -254,7 +254,7 @@ Invite `ci-user-read-only` to your `infrastructure-live-root` repository with re
254
254
Generate the following token for the `ci-read-only-user`:
255
255
256
256
**Checklist:**
257
-
<PersistentCheckboxid="via-machine-users-4"label="PIPELINES_READ_TOKEN created under ci-read-only-user" />
257
+
<PersistentCheckboxid="via-machine-users-5"label="PIPELINES_READ_TOKEN created under ci-read-only-user" />
258
258
259
259
260
260
@@ -271,7 +271,7 @@ This token must have `repo` scopes. Gruntwork recommends setting expiration to 9
271
271
Make sure both machine users are added to your team in Gruntwork’s GitHub Organization. Refer to the [instructions for inviting a user to your team](https://docs.gruntwork.io/developer-portal/invite-team#inviting-team-members) and [linking the user’s GitHub ID to Gruntwork](https://docs.gruntwork.io/developer-portal/link-github-id) for guidance.
272
272
273
273
**Checklist:**
274
-
<PersistentCheckboxid="via-machine-users-4"label="Machine users invited to Gruntwork organization" />
274
+
<PersistentCheckboxid="via-machine-users-6"label="Machine users invited to Gruntwork organization" />
275
275
276
276
## Configure secrets for GitHub Actions
277
277
@@ -388,7 +388,7 @@ For more information on creating and using GitHub Actions Repository secrets, re
388
388
<TabItemvalue="gitlab"label="GitLab">
389
389
390
390
391
-
For GitLab, Pipelines requires a single machine user with `api` access. This user will be used to authenticate API calls and access repositories within your GitLab group.
391
+
For GitLab, Pipelines requires a single machine user with `api`and `read_repository`access. This user will be used to authenticate API calls and access repositories within your GitLab group.
392
392
393
393
### Creating the CI User
394
394
@@ -402,34 +402,38 @@ For GitLab, Pipelines requires a single machine user with `api` access. This use
402
402
403
403
### Creating the Access Token
404
404
405
-
Generate a Personal Access Token for the CI user with the following scopes:
406
-
-`api` - For making API calls to e.g. create comments on merge requests
405
+
Gruntwork recommends [creating](https://docs.gitlab.com/user/profile/personal_access_tokens/#create-a-personal-access-token) two Personal Access Tokens for the CI user as best practice:
406
+
-**PIPELINES_GITLAB_TOKEN** token with `api` scope for making API calls to e.g. create comments on merge requests
407
+
-**PIPELINES_GITLAB_READ_TOKEN** token with `read_repository` scope for accessing GitLab repositories e.g your catalog or infrastructure modules
407
408
408
-
This token will be stored as the `PIPELINES_GITLAB_TOKEN` in your CI/CD variables.
409
+
You may however generate a single token with both `api` and `read_repository` scopes if you prefer and use it for both purposes.
410
+
411
+
These tokens will be stored in your CI/CD variables.
409
412
410
413
:::tip
411
414
Set an expiration date according to your organization's security policies. We recommend 90 days as a balance between security and maintenance.
0 commit comments