diff --git a/docs/FAQ.md b/docs/FAQ.md index 2b03547d55..1eeaac1de2 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -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).