Created
December 17, 2020 01:47
-
-
Save perryism/3d433fc1e83da5ee9d16b2b2ad54bded to your computer and use it in GitHub Desktop.
Update codebuild github token to access private repos
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
# Ref: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-access-tokens.html | |
cat <<EOT >> creds.json | |
{ | |
"username": "perryism", | |
"token": "my_access_token", | |
"serverType": "GITHUB", | |
"authType": "OAUTH", | |
"shouldOverwrite": true | |
}EOT | |
aws codebuild import-source-credentials --cli-input-json file://creds.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment