Skip to content
Snippets Groups Projects
Verified Commit be8cabe5 authored by anarcat's avatar anarcat
Browse files

clarify scope of gitlab access token required for branch renames

parent 9af471a0
No related branches found
No related tags found
No related merge requests found
......@@ -438,7 +438,8 @@ GitLab remotes, where it "un-protects" and "re-protects" the branch.
You should run the script with an account that has "Maintainer" or
"Owner" access to GitLab, so that it can do the above GitLab API
changes. You will then need to provide an [access token](https://gitlab.torproject.org/-/profile/personal_access_tokens) through
the `GITLAB_PRIVATE_TOKEN` environment variable.
the `GITLAB_PRIVATE_TOKEN` environment variable, which should have the
scope `api`.
So, for example, this will rename the `master` branch to `main` on the
local and remote repos:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment