1

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?

1
  • 1
    So which version do you use? Probably you are referring to project access tokens which have been introduced in GitLab 13.0? You should be able to use personal access tokens however. Commented Jul 29, 2021 at 17:44

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.