Skip to content

Commit

Permalink
DEVPROD-11598 Add to generate token FAQ about go private modules (#8341)
Browse files Browse the repository at this point in the history
  • Loading branch information
malikchaya2 authored Sep 25, 2024
1 parent dc993be commit e5e8f39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ A few things may cause this issue:
- There may be a typo in the owner or repository used when generating the token. Look for the log that says `creating github dynamic access token for 'owner/repo'` and copy/paste it into github to ensure that the owner/repo exist and are spelled correctly.
- Parts of the evergreen system or github may be down.
- There may be something wrong with the github app ID or the github app key saved in [project settings](Github-Integrations#dynamic-github-access-tokens).

##### How can I use a generated token for private go modules?

After using the github.generate_token command to generate a token, you can then use it in a global git config with something like `git config --global url."https://x-access-token:${generated_token}@github.com/".insteadOf https://github.com/`. Evergreen will reset the global git config at the end of tasks (or for task groups, after the all the tasks in the task group tasks have finished).

0 comments on commit e5e8f39

Please sign in to comment.