John Doe
John Doe

Reputation: 11

Using GitLab REST API without Access Tokens

Can I run script from .gitlab-ci.yml, which will be editing wiki pages via GitLab REST API?

I am not sure, because I use old version of GitLab, which doesn't have Access Tokens.

Can I use something else to PRIVATE-TOKEN?

Upvotes: 1

Views: 1373

Answers (1)

Adam Marshall
Adam Marshall

Reputation: 7649

You can use a Predefined Variable called CI_JOB_TOKEN which will contain an access token you can use to authenticate against the API. If you need a token with Admin access, you'll have to use an Admin User's personal access token, which you can store as a secret variable in Project's Settings -> CI/CD Settings -> Variables.

Upvotes: 1

Related Questions