Skip to content

Commit 9f0208b

Browse files
committed
Update GitLab secrets section in README
Clarified GitLab secrets section with examples for project and group variables. Signed-off-by: Alexander Kulikov <akulikov@spotware.com> Signed-off-by: Alexander Kulikov <askripe@gmail.com>
1 parent 1d8e6d0 commit 9f0208b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,12 +864,26 @@ Examples:
864864
865865
For this provider to work you require an [access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) exported as the environment variable `GITLAB_TOKEN`.
866866
867+
- `ref+gitlab://my-gitlab-server.com/[projects/|groups/]id/secret_name?[ssl_verify=false&scheme=https&api_version=v4]`
867868
868-
- `ref+gitlab://my-gitlab-server.com/project_id/secret_name?[ssl_verify=false&scheme=https&api_version=v4]`
869+
* `Project variables`
870+
871+
Fetches a CI/CD variable `password` from a `project`. Both forms are equivalent:
872+
873+
- `ref+gitlab://gitlab.com/11111/password`
874+
- `ref+gitlab://gitlab.com/projects/11111/password`
875+
876+
* `Group variables`
877+
878+
Fetches a CI/CD variable `password` from a `group`:
879+
880+
- `ref+gitlab://gitlab.com/groups/2222/password`
869881
870882
Examples:
871883
872884
- `ref+gitlab://gitlab.com/11111/password`
885+
- `ref+gitlab://gitlab.com/projects/11111/password`
886+
- `ref+gitlab://gitlab.com/groups/2222/password`
873887
- `ref+gitlab://my-gitlab.org/11111/password?ssl_verify=true&scheme=https`
874888
875889
### 1Password

0 commit comments

Comments
 (0)