Skip to content

Commit dad8eae

Browse files
committed
scorecard: trim whitespace in annotation keys
1 parent e30a088 commit dad8eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scorecard/enabled.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
func (so *ScoredObject) isEnabled(check ks.Check, annotations, childAnnotations map[string]string) bool {
1010
isIn := func(csv string, key string) bool {
1111
for _, v := range strings.Split(csv, ",") {
12+
v = strings.TrimSpace(v)
1213
if v == key {
1314
return true
1415
}

0 commit comments

Comments
 (0)