Skip to content

Commit

Permalink
Remove collections from step image registries
Browse files Browse the repository at this point in the history
Collections are not properly supported in the `task` namespace, see
enterprise-contract#872

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Jan 22, 2024
1 parent 35ca2a2 commit 00f3625
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions policy/task/step_image_registries.rego
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import data.lib
# failure_msg: Step %d uses disallowed image ref '%s'
# solution: >-
# Make sure the container image used in each step of the Task comes from an approved registry.
# collections:
# - redhat
#
deny contains result if {
allowed_registry_prefixes := lib.rule_data(_rule_data_key)
Expand All @@ -50,9 +48,6 @@ deny contains result if {
# Make sure the xref:ec-cli:ROOT:configuration.adoc#_data_sources[data sources] contains a key
# 'allowed_step_image_registry_prefixes' that contains a list of approved registries
# that can be used to run tasks in the build pipeline.
# collections:
# - policy_data
# - redhat
#
deny contains result if {
some error in _rule_data_errors
Expand Down

0 comments on commit 00f3625

Please sign in to comment.