diff --git a/controllers/actions.github.com/resourcebuilder.go b/controllers/actions.github.com/resourcebuilder.go index 57fd725751..152eea6d7a 100644 --- a/controllers/actions.github.com/resourcebuilder.go +++ b/controllers/actions.github.com/resourcebuilder.go @@ -747,7 +747,7 @@ func trimLabelValue(val string) string { if len(val) > 63 { return val[:63-len(trimLabelVauleSuffix)] + trimLabelVauleSuffix } - return val + return strings.Trim(val, "-_.") } func (b *ResourceBuilder) mergeLabels(base, overwrite map[string]string) map[string]string {