Skip to content

Commit

Permalink
fix(utils.go): allow update and delete actions in validActionPatterns…
Browse files Browse the repository at this point in the history
… regex
  • Loading branch information
pouriyabp committed Dec 18, 2024
1 parent 1dad3e4 commit 794a318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argocd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func isValidPolicyAction(action string) bool {
"*": true,
}
validActionPatterns := []*regexp.Regexp{
regexp.MustCompile("action/.*"),
regexp.MustCompile("(action|update|delete)/.*"),
}

if validActions[action] {
Expand Down

0 comments on commit 794a318

Please sign in to comment.