AWS CodeBuild now supports multiple access tokens via AWS Secrets Manager

AWS CodeBuild now supports configuring multiple access tokens for each source provider. You can store your OAuth or personal access tokens in AWS Secrets Manager, and specify them in CodeBuild projects. This feature is available for your GitHub, GitHub Enterprise and Bitbucket source repositories.

With multiple access tokens, you can use different tokens with scoped down permissions for each of your projects. Configuring tokens in Secrets Manager enables you to audit the token access using CloudTrail logs, and set IAM roles and resource policies to limit who can access these tokens.

This feature is available in all regions where CodeBuild is offered. For more information about the AWS Regions where CodeBuild is available, see the AWS Regions page.

To get started, create a Secrets Manager secret with your access token and configure it in your CodeBuild project. To learn more about how CodeBuild connects to your repositories, see access your source provider in CodeBuild.
 

Source:: Amazon AWS