diff --git a/json-schema/registry.json b/json-schema/registry.json index 655ffd942..dce3d9dea 100644 --- a/json-schema/registry.json +++ b/json-schema/registry.json @@ -264,10 +264,12 @@ "type": "string" }, "signer_workflow": { - "type": "string" + "type": "string", + "format": "regex" }, "signer-workflow": { - "type": "string" + "type": "string", + "format": "regex" } }, "additionalProperties": false, diff --git a/pkg/config/registry/github_cli.go b/pkg/config/registry/github_cli.go index 2da67b372..0cf176409 100644 --- a/pkg/config/registry/github_cli.go +++ b/pkg/config/registry/github_cli.go @@ -9,11 +9,11 @@ type GitHubArtifactAttestations struct { PredicateType string `yaml:"predicate_type,omitempty" json:"predicate_type,omitempty"` // SignerWorkflow2 specifies the expected GitHub Actions workflow for signing. // See https://github.com/aquaproj/aqua/issues/3581 - SignerWorkflow2 string `yaml:"signer_workflow,omitempty" json:"signer_workflow,omitempty"` + SignerWorkflow2 string `yaml:"signer_workflow,omitempty" json:"signer_workflow,omitempty" jsonschema:"format=regex"` // SignerWorkflow3 is the deprecated field name for signer workflow. // // Deprecated: Use SignerWorkflow2 instead. This will be removed in aqua v3. - SignerWorkflow3 string `yaml:"signer-workflow,omitempty" json:"signer-workflow,omitempty"` + SignerWorkflow3 string `yaml:"signer-workflow,omitempty" json:"signer-workflow,omitempty" jsonschema:"format=regex"` } // SignerWorkflow returns the configured signer workflow.