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
Source Configuration Under Source, chooseDisconnect from Bitbucket
to 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
Update
source to apply the new OAuth‑based authentication and complete remediation.