Skip to content

Commit

Permalink
scorecard: trim whitespace in annotation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Dec 16, 2022
1 parent e30a088 commit dad8eae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scorecard/enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
func (so *ScoredObject) isEnabled(check ks.Check, annotations, childAnnotations map[string]string) bool {
isIn := func(csv string, key string) bool {
for _, v := range strings.Split(csv, ",") {
v = strings.TrimSpace(v)
if v == key {
return true
}
Expand Down

0 comments on commit dad8eae

Please sign in to comment.