Skip to content

Commit 6a6e17c

Browse files
authored
registry types: Add omitempty option to repository_ref field (#1481)
Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent dea101d commit 6a6e17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/registry/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type ImageMetadata struct {
7979
type Provenance struct {
8080
SigstoreURL string `json:"sigstore_url" yaml:"sigstore_url"`
8181
RepositoryURI string `json:"repository_uri" yaml:"repository_uri"`
82-
RepositoryRef string `json:"repository_ref" yaml:"repository_ref"`
82+
RepositoryRef string `json:"repository_ref,omitempty" yaml:"repository_ref,omitempty"`
8383
SignerIdentity string `json:"signer_identity" yaml:"signer_identity"`
8484
RunnerEnvironment string `json:"runner_environment" yaml:"runner_environment"`
8585
CertIssuer string `json:"cert_issuer" yaml:"cert_issuer"`

0 commit comments

Comments
 (0)