From 794a31838e260a87ef92609719725d92c61a88bb Mon Sep 17 00:00:00 2001 From: pouriyabp Date: Wed, 18 Dec 2024 05:47:10 +0330 Subject: [PATCH] fix(utils.go): allow update and delete actions in validActionPatterns regex --- argocd/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argocd/utils.go b/argocd/utils.go index 86b05feb..6cd2bb6e 100644 --- a/argocd/utils.go +++ b/argocd/utils.go @@ -87,7 +87,7 @@ func isValidPolicyAction(action string) bool { "*": true, } validActionPatterns := []*regexp.Regexp{ - regexp.MustCompile("action/.*"), + regexp.MustCompile("(action|update|delete)/.*"), } if validActions[action] {