Bump package versions, and fix issues
This commit is contained in:
1 parent
30ca54a683
commit
11e9c0b54c
5 files changed
+348
-1705
No files matched your search
Generated
+338
-1701
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/attest",
|
"name": "@actions/attest",
|
||||||
"version": "1.6.0",
|
"version": "2.0.0",
|
||||||
"description": "Actions attestation lib",
|
"description": "Actions attestation lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
+2
-1
@@ -102,7 +102,8 @@ function toAttestation(bundle: Bundle, attestationID?: string): Attestation {
|
|||||||
throw new Error('Bundle must contain an x509 certificate')
|
throw new Error('Bundle must contain an x509 certificate')
|
||||||
}
|
}
|
||||||
|
|
||||||
const signingCert = new X509Certificate(certBytes)
|
// Convert Buffer to Uint8Array for Node.js 24 compatibility
|
||||||
|
const signingCert = new X509Certificate(new Uint8Array(certBytes))
|
||||||
|
|
||||||
// Collect transparency log ID if available
|
// Collect transparency log ID if available
|
||||||
const tlogEntries = bundle.verificationMaterial.tlogEntries
|
const tlogEntries = bundle.verificationMaterial.tlogEntries
|
||||||
|
|||||||
+5
-1
@@ -29,7 +29,11 @@ export const writeAttestation = async (
|
|||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
headers: options.headers,
|
headers: options.headers,
|
||||||
data: {bundle: attestation}
|
bundle: attestation as {
|
||||||
|
mediaType?: string
|
||||||
|
verificationMaterial?: { [key: string]: unknown }
|
||||||
|
dsseEnvelope?: { [key: string]: unknown }
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const data =
|
const data =
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"outDir": "./lib",
|
"outDir": "./lib",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"rootDir": "./src"
|
"rootDir": "./src",
|
||||||
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src"
|
"./src"
|
||||||
|
|||||||
Reference in new issue
Block a user