Skip to content

Instantly share code, notes, and snippets.

@perryism
Created December 17, 2020 01:47
Show Gist options
  • Save perryism/3d433fc1e83da5ee9d16b2b2ad54bded to your computer and use it in GitHub Desktop.
Save perryism/3d433fc1e83da5ee9d16b2b2ad54bded to your computer and use it in GitHub Desktop.
Update codebuild github token to access private repos
# 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