Skip to content

Commit

Permalink
fix missing await in addArtifact
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <bdehamer@github.com>
  • Loading branch information
bdehamer committed May 20, 2024
1 parent cfbf786 commit feaa119
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-beans-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sigstore/oci": patch
---

Fix missing await in addArtifact
2 changes: 1 addition & 1 deletion packages/oci/src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class OCIImage {
// Add the artifact to the index
referrerManifest.manifests.push(opts.artifact);

this.#client.uploadManifest(JSON.stringify(referrerManifest), {
await this.#client.uploadManifest(JSON.stringify(referrerManifest), {
mediaType: CONTENT_TYPE_OCI_INDEX,
reference: referrerTag,
etag,
Expand Down

0 comments on commit feaa119

Please sign in to comment.