Skip to content
Snippets Groups Projects

Correct the scope of the GitHub personal access token

Merged Asmaa Hassan requested to merge asmaa.hassan-master-patch-63160 into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -224,11 +224,11 @@ to browse its content and its activity using the GitLab interface, you can confi
@@ -224,11 +224,11 @@ to browse its content and its activity using the GitLab interface, you can confi
mirror pulling:
mirror pulling:
1. If your remote repository is on GitHub and you have [two-factor authentication (2FA) configured](https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa), create a [personal access token for GitHub](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)
1. If your remote repository is on GitHub and you have [two-factor authentication (2FA) configured](https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa), create a [personal access token for GitHub](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)
with the `read:repo_hook` scope. If 2FA is enabled, this personal access
with the `repo` scope. If 2FA is enabled, this personal access
token serves as your GitHub password.
token serves as your GitHub password.
1. In your project, go to **Settings > Repository**, and then expand the
1. In your project, go to **Settings > Repository**, and then expand the
**Mirroring repositories** section.
**Mirroring repositories** section.
1. In the **Git repository URL** field, enter a repository URL.
1. In the **Git repository URL** field, enter a repository URL (Include the username in the URL if required: ie. https://myusername@github.com/group/project.git).
1. In the **Mirror direction** dropdown, select **Pull**.
1. In the **Mirror direction** dropdown, select **Pull**.
1. In the **Authentication method** dropdown, select your authentication method.
1. In the **Authentication method** dropdown, select your authentication method.
1. Select from the following checkboxes, if needed:
1. Select from the following checkboxes, if needed:
Loading