Skip to content

Commit 3e95d2c

Browse files
authored
fix: Scorecard configuration ServiceAccount tag (#166)
The tag that configures the serialization of the ServiceAccount field for the Scorecard configuration incorrectly names the field "string", which results in the `serviceaccount` field being empty after unmarshalling, therefore being ignored. Update the tag to name the field `serviceaccount`
1 parent 37561c9 commit 3e95d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/scorecard/v1alpha3/configuration_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Configuration struct {
2424
Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"`
2525

2626
// ServiceAccount is the service account under which scorecard tests are run. This field is optional. If left unset, the `default` service account will be used.
27-
ServiceAccount string `json:"string,omitempty" yaml:"string,omitempty"`
27+
ServiceAccount string `json:"serviceaccount,omitempty" yaml:"serviceaccount,omitempty"`
2828
}
2929

3030
// StageConfiguration configures a set of tests to be run.

0 commit comments

Comments
 (0)