Created
September 6, 2019 17:31
-
-
Save magickatt/07ff02068f8cd2e4e558f20358b2082c to your computer and use it in GitHub Desktop.
Clone a GitHub repository using a Personal Access Token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GITHUB_USER=magickatt | |
export GITHUB_TOKEN=secret | |
export GITHUB_REPOSITORY=magickatt/ContainerisingLegacyApplicationsTalk | |
git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured out that PAT can not be used on others' private repos that you have access to.
"Each token can only access resources owned by a single user or organization."
The method works with the classical Token but this doesn't restrict access enough...