Skip to content

Commit f85d4bd

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 43c5e2d commit f85d4bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/fnruntime/celeval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ func NewCELEvaluator(condition string) (*CELEvaluator, error) {
8383
return nil, fmt.Errorf("CEL expression must return a boolean, got %v", ast.OutputType())
8484
}
8585

86-
// Create the program with cost tracking enabled (no hard limit enforced)
87-
prg, err := env.Program(ast,
86+
// Create the program with a hard cost limit and cost tracking enabled
87+
prg, err := env.Program(ast,
8888
cel.CostLimit(costLimit),
8989
cel.InterruptCheckFrequency(checkFrequency),
9090
cel.CostTracking(&k8scellib.CostEstimator{}),

0 commit comments

Comments
 (0)