π§ AWS CodeBuild Project Bitbucket Source Location URL contains credentials - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-10T22:32:37.317719119Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/policy.yaml | 2E96677C1BA4E939DF0F8E98035FEB14 |
| Open | /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/prod.logic.yaml | B13A849A7659AAAC5FE0BCD228B7EB19 |
| Open | /ce/ca/aws/codebuild/project-bitbucket-source-url-contains-creds/test-data.json | 574BCB12F26B8E36C79D80106280296D |
| Open | /types/CA10__CaAwsCodeBuildProject__c/object.extracts.yaml | D208E74BC8FC2D188EC746EC51BDE15A |
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β
---
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."