Critical CodeBuild Regional

CodeBuild Bitbucket source repository URLs should not contain sensitive credentials

PCI DSSNISTISO 27001HIPAA

Description

Ensures CodeBuild projects use OAuth for GitHub or Bitbucket source repository authentication rather than personal access tokens or username/password credentials.


Remediation

To ensure secure authentication, update your CodeBuild project to use OAuth for GitHub or Bitbucket repositories.

Steps

  1. Open the AWS CodeBuild console at https://console.aws.amazon.com/codebuild/.
  2. Choose the build project to update.
  3. From Edit, select Source.
  4. Choose Disconnect from GitHub / Bitbucket if currently connected.
  5. Select Connect using OAuth, then choose Connect to GitHub / Bitbucket.
  6. Authorize the connection when prompted.
  7. Reconfigure your repository URL and additional settings as needed.
  8. Choose Update source.

Compliance

PCI DSSNISTISO 27001HIPAA