We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 557eea2 + 31877e3 commit a14e679Copy full SHA for a14e679
policy/lib/tekton/trusted.rego
@@ -96,8 +96,14 @@ _task_expires_on(task) := expires if {
96
ref := task_ref(task)
97
records := _trusted_tasks[ref.key]
98
99
- some record in records
100
- record.ref == ref.pinned_ref
+ matching_records := [r |
+ some r in records
101
+ r.ref == ref.pinned_ref
102
+ ]
103
+
104
+ # Avoid an "eval_conflict_error: functions must not produce multiple
105
+ # outputs..." error if the data has duplicate records for this ref
106
+ record := matching_records[0]
107
108
expires = time.parse_rfc3339_ns(record.expires_on)
109
}
0 commit comments