From 3bc985f0d2f94c9aec8ed89c62a21902c4af01cf Mon Sep 17 00:00:00 2001 From: shrutiparabgoogle <78754132+shrutiparabgoogle@users.noreply.github.com> Date: Tue, 21 Jun 2022 11:39:52 -0700 Subject: [PATCH] Fix mime_type while uploading scorecards (#617) --- cmd/registry/scoring/scorecard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/registry/scoring/scorecard.go b/cmd/registry/scoring/scorecard.go index 26d4ba4ce..ca6f83f53 100644 --- a/cmd/registry/scoring/scorecard.go +++ b/cmd/registry/scoring/scorecard.go @@ -211,7 +211,7 @@ func uploadScoreCard(ctx context.Context, client connection.Client, resource pat artifact := &rpc.Artifact{ Name: fmt.Sprintf("%s/artifacts/%s", resource.ResourceName().String(), scoreCard.GetId()), Contents: artifactBytes, - MimeType: patch.MimeTypeForKind("Score"), + MimeType: patch.MimeTypeForKind("ScoreCard"), } log.Debugf(ctx, "Uploading %s", artifact.GetName()) if err = core.SetArtifact(ctx, client, artifact); err != nil {