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.
EditSource Configuration Under Source, chooseDisconnect from Bitbucketto remove the existing basicβauth or Personal Access Token linkage.- Click
Connect using OAuth. SelectConnect to Bitbucket. When prompted, grant the required OAuth permissions to allow CodeBuild secure, tokenβbased access. - Enter or confirm your repository URL (omit any embedded credentials).
- Adjust any additional sourceβconfiguration parameters (e.g., buildβββspec path, webhook triggers).
- Click
Updatesource to apply the new OAuthβbased authentication and complete remediation.