π§ AWS ECR Repository Manual Scanning is enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-07T12:02:16.912278820Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/ecr/disable-repository-manual-scanning/policy.yaml | 3BABE7E55F81315B97F9233696DF547A |
| Open | /ce/ca/aws/ecr/disable-repository-manual-scanning/prod.logic.yaml | 5367DDE31ED4AF6C6DF96FEB7F9FF035 |
| Open | /ce/ca/aws/ecr/disable-repository-manual-scanning/test-data.json | 82468D6EE2A865CE03544A4CC218CE18 |
| Open | /types/CA10A1__CaAwsEcrRegistry__c/object.extracts.yaml | D76BB48E60AE366BA0ECB444FE9C92C6 |
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β
---
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 failed."
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."