Skip to content

Commit 3f67a24

Browse files
authored
bump @sigstore/oci from 0.3.0 to 0.3.2 (#61)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
1 parent e259ee2 commit 3f67a24

File tree

4 files changed

+113
-14
lines changed

4 files changed

+113
-14
lines changed

dist/index.js

Lines changed: 96 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@actions/attest": "^1.2.1",
7373
"@actions/core": "^1.10.1",
7474
"@actions/glob": "^0.4.0",
75-
"@sigstore/oci": "^0.3.0",
75+
"@sigstore/oci": "^0.3.2",
7676
"csv-parse": "^5.5.5"
7777
},
7878
"devDependencies": {

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const ATTESTATION_FILE_NAME = 'attestation.jsonl'
1919

2020
const MAX_SUBJECT_COUNT = 64
2121

22+
const OCI_TIMEOUT = 2000
23+
const OCI_RETRY = 3
24+
2225
/* istanbul ignore next */
2326
const logHandler = (level: string, ...args: unknown[]): void => {
2427
// Send any HTTP-related log events to the GitHub Actions debug log
@@ -163,7 +166,8 @@ const createAttestation = async (
163166
annotations: {
164167
'dev.sigstore.bundle.content': 'dsse-envelope',
165168
'dev.sigstore.bundle.predicateType': core.getInput('predicate-type')
166-
}
169+
},
170+
fetchOpts: { timeout: OCI_TIMEOUT, retry: OCI_RETRY }
167171
})
168172
core.info(highlight('Attestation uploaded to registry'))
169173
core.info(`${subject.name}@${artifact.digest}`)

0 commit comments

Comments
 (0)