From 8afbcf6e5e31a04f9ef7ca7ee40a0d91e263da5a Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Mon, 17 Jun 2024 06:51:46 -0700 Subject: [PATCH] increase timeout for OCI operations (#92) Signed-off-by: Brian DeHamer --- dist/index.js | 2 +- src/attest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ab1deeae..cd6b472a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -79927,7 +79927,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createAttestation = void 0; const attest_1 = __nccwpck_require__(74113); const oci_1 = __nccwpck_require__(47353); -const OCI_TIMEOUT = 2000; +const OCI_TIMEOUT = 30000; const OCI_RETRY = 3; const createAttestation = async (subject, predicate, opts) => { // Sign provenance w/ Sigstore diff --git a/src/attest.ts b/src/attest.ts index 49e97059..187ffef5 100644 --- a/src/attest.ts +++ b/src/attest.ts @@ -1,7 +1,7 @@ import { Attestation, Predicate, Subject, attest } from '@actions/attest' import { attachArtifactToImage, getRegistryCredentials } from '@sigstore/oci' -const OCI_TIMEOUT = 2000 +const OCI_TIMEOUT = 30000 const OCI_RETRY = 3 export type SigstoreInstance = 'public-good' | 'github'