You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure client returns real azure.mgmt.containerregistry.models.Registry objects, whose relevant fields are top-level. AZ-SC-001 through AZ-SC-004 instead read registry.properties; tests reproduce that incorrect nested shape.
Real registries can therefore be silently skipped. AZ-SC-004 also applies retention expectations to Basic/Standard registries even though the retention feature is Premium-only.
Evidence: scanner/azure_client.py:932-955, scanner/rules/az_sc_001.py:38-46, az_sc_002.py:39-47, az_sc_003.py:39-47, az_sc_004.py:42-65, and tests/test_rules_supply_chain.py:27-37.
What is wrong
The Azure client returns real
azure.mgmt.containerregistry.models.Registryobjects, whose relevant fields are top-level. AZ-SC-001 through AZ-SC-004 instead readregistry.properties; tests reproduce that incorrect nested shape.Real registries can therefore be silently skipped. AZ-SC-004 also applies retention expectations to Basic/Standard registries even though the retention feature is Premium-only.
Evidence:
scanner/azure_client.py:932-955,scanner/rules/az_sc_001.py:38-46,az_sc_002.py:39-47,az_sc_003.py:39-47,az_sc_004.py:42-65, andtests/test_rules_supply_chain.py:27-37.SDK source: https://learn.microsoft.com/python/api/azure-mgmt-containerregistry/azure.mgmt.containerregistry.models.registry
Retention source: https://learn.microsoft.com/azure/container-registry/container-registry-retention-policy
Acceptance criteria
SimpleNamespace.