Skip to main content

🧠 AWS CodeBuild Project Bitbucket Source Location URL contains credentials - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:37.317719119Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__sourceType__c') != 'BITBUCKET'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__sourceLocation__c').contains('@')βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/policy.yaml2E96677C1BA4E939DF0F8E98035FEB14
Open/ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yamlB13A849A7659AAAC5FE0BCD228B7EB19
Open/ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/test-data.json574BCB12F26B8E36C79D80106280296D
Open/types/CA10__CaAwsCodeBuildProject__c/object.extracts.yamlD208E74BC8FC2D188EC746EC51BDE15A

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsCodeBuildProject__c"
importExtracts:
- file: /types/CA10__CaAwsCodeBuildProject__c/object.extracts.yaml
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The source provider is not Bitbucket."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__sourceType__c"
right:
TEXT: "BITBUCKET"
- status: "INCOMPLIANT"
currentStateMessage: "Bitbucket source repository URL contains credentials."
remediationMessage: "Remove credentials from the repository URL and use OAuth for authentication."
check:
CONTAINS:
arg:
EXTRACT: "CA10__sourceLocation__c"
search:
TEXT: "@"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Bitbucket source repository URL does not contain sensitive credentials."