Remediation
From Consoleβ
To eliminate embedded credentials and configure OAuth authentication for your AWS CodeBuild Project:
- Locate and select the build project that currently references credentials in its source URL.
- Edit the source configuration. Under Source, choose
Disconnect from Bitbucketto remove the existing basic-auth or Personal Access Token linkage. - Click
Connect using OAuth, then selectConnect to Bitbucket. When prompted, grant the required OAuth permissions to allow CodeBuild secure, token-based access. - Enter or confirm your repository URL and omit any embedded credentials.
- Adjust any additional source-configuration parameters (for example, buildspec path and webhook triggers).
- Click
Updatesource to apply the new OAuth-based authentication and complete remediation.