Skip to content

Commit 21142ea

Browse files
author
jmccormick2001
committed
fix the list flag - v1alpha1 check
1 parent b3812d9 commit 21142ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/scorecard/scorecard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func validateScorecardConfig() error {
201201
return err
202202
}
203203

204-
if !schelpers.IsV1alpha2(version) && scViper.IsSet(ListOpt) {
204+
if !schelpers.IsV1alpha2(version) && scViper.GetBool(ListOpt) {
205205
return fmt.Errorf("list flag is not supported on v1alpha1")
206206
}
207207

0 commit comments

Comments
 (0)