Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ ECR β†’ πŸ›‘οΈ Repository Manual Scanning is enabled🟒

🧠 AWS ECR Repository Manual Scanning is enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-04T12:03:04.229070641Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('CA10A1__registry__r.caJsonFrom__scanningConfigurationRulesJson__c').jsonQueryText('length(rules)') == number(0.0)βœ”οΈ null
🟒test3βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 199βœ”οΈ isEmptyLookup('CA10A1__registry__r')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/ecr/disable-repository-manual-scanning/policy.yaml4EE1EFE0B52AB72E513794FCC368AF08
Open/ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yamlD6E92BE0632454122DAFC21BF7ACC00F
Open/ce/ca/aws/ecr/disable-repository-manual-scanning/test-data.json82468D6EE2A865CE03544A4CC218CE18
Open/types/CA10A1__CaAwsEcrRegistry__c/object.extracts.yamlD76BB48E60AE366BA0ECB444FE9C92C6

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsEcrRepository__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10A1__CaAwsEcrRegistry__c/object.extracts.yaml
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The Repository's registry is not present in the CMDB."
check:
IS_EMPTY_LOOKUP: "CA10A1__registry__r"
- status: "INCOMPLIANT"
currentStateMessage: "The ECR Registry scanning is configured for manual scans."
remediationMessage: "Configure the Registry scanning to use Scan On Push or Continuous Scanning."
check:
IS_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
EXTRACT: "CA10A1__registry__r.caJsonFrom__scanningConfigurationRulesJson__c"
expression: "length(rules)"
undeterminedIf:
evaluationError: "Json query number has filed."
resultTypeMismatch: "Json query number did not return a number type."
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Registry is configured for automated vulnerability scanning."