1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: better document multiple tokens error (#3438)

closes #3361
This commit is contained in:
Carlos Alexandro Becker 2022-10-05 10:27:02 -03:00 committed by GitHub
parent db14e75766
commit bb170f3b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,3 +13,24 @@ Learn more at https://goreleaser.com/errors/multiple-tokens
In this case, you either unset `GITHUB_TOKEN` or `GITLAB_TOKEN`.
You can read more about it in the [SCM docs](/scm/github/).
This can also happen if you load the tokens from files.
The default paths are:
- `~/.config/goreleaser/github_token`
- `~/.config/goreleaser/gitlab_token`
- `~/.config/goreleaser/gitea_token`
If you have more than one of these files, but for a particular project, you want
to force one of them, you can explicitly disable the others by setting them to a
file you know won't exist:
```yaml
# .goreleaser.yaml
env_files:
gitlab_token: ~/nope
gitea_token: ~/nope
```
This will prevent using both GitLab and Gitea tokens.