Skip to content

Commit

Permalink
docs: better document multiple tokens error (#3438)
Browse files Browse the repository at this point in the history
closes #3361
  • Loading branch information
caarlos0 committed Oct 5, 2022
1 parent db14e75 commit bb170f3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions www/docs/errors/multiple-tokens.md
Expand Up @@ -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.

0 comments on commit bb170f3

Please sign in to comment.