Skip to content

Commit acb230b

Browse files
authored
Merge pull request actions#2160 from actions/ejahnGithub-patch-1
Remove unnecessary Buffer to Uint8Array conversion
2 parents ac2468e + 5e0fa1a commit acb230b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/attest/src/attest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ function toAttestation(bundle: Bundle, attestationID?: string): Attestation {
102102
throw new Error('Bundle must contain an x509 certificate')
103103
}
104104

105-
// Convert Buffer to Uint8Array for Node.js 24 compatibility
106-
const signingCert = new X509Certificate(new Uint8Array(certBytes))
105+
const signingCert = new X509Certificate(certBytes)
107106

108107
// Collect transparency log ID if available
109108
const tlogEntries = bundle.verificationMaterial.tlogEntries

0 commit comments

Comments
 (0)