Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
202
node_modules/@sigstore/bundle/LICENSE
generated
vendored
Normal file
202
node_modules/@sigstore/bundle/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,202 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2023 The Sigstore Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
19
node_modules/@sigstore/bundle/README.md
generated
vendored
Normal file
19
node_modules/@sigstore/bundle/README.md
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# @sigstore/bundle · [](https://www.npmjs.com/package/@sigstore/bundle) [](https://github.com/sigstore/sigstore-js/actions/workflows/ci.yml) [](https://github.com/sigstore/sigstore-js/actions/workflows/smoke-test.yml)
|
||||
|
||||
A JavaScript library for working with the Sigstore bundle format.
|
||||
|
||||
## Features
|
||||
|
||||
- TypeScript types for the different Sigstore bundle versions.
|
||||
- Bundle validation functions.
|
||||
- Support for serializing/deserializing bundles to/from JSON.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Node.js version >= 16.14.0
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install @sigstore/bundle
|
||||
```
|
19
node_modules/@sigstore/bundle/dist/build.d.ts
generated
vendored
Normal file
19
node_modules/@sigstore/bundle/dist/build.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
/// <reference types="node" />
|
||||
import type { BundleWithDsseEnvelope, BundleWithMessageSignature } from './bundle';
|
||||
type VerificationMaterialOptions = {
|
||||
certificate?: Buffer;
|
||||
keyHint?: string;
|
||||
singleCertificate?: boolean;
|
||||
};
|
||||
type MessageSignatureBundleOptions = {
|
||||
digest: Buffer;
|
||||
signature: Buffer;
|
||||
} & VerificationMaterialOptions;
|
||||
type DSSEBundleOptions = {
|
||||
artifact: Buffer;
|
||||
artifactType: string;
|
||||
signature: Buffer;
|
||||
} & VerificationMaterialOptions;
|
||||
export declare function toMessageSignatureBundle(options: MessageSignatureBundleOptions): BundleWithMessageSignature;
|
||||
export declare function toDSSEBundle(options: DSSEBundleOptions): BundleWithDsseEnvelope;
|
||||
export {};
|
101
node_modules/@sigstore/bundle/dist/build.js
generated
vendored
Normal file
101
node_modules/@sigstore/bundle/dist/build.js
generated
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.toDSSEBundle = exports.toMessageSignatureBundle = void 0;
|
||||
/*
|
||||
Copyright 2023 The Sigstore Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
const protobuf_specs_1 = require("@sigstore/protobuf-specs");
|
||||
const bundle_1 = require("./bundle");
|
||||
// Message signature bundle - $case: 'messageSignature'
|
||||
function toMessageSignatureBundle(options) {
|
||||
return {
|
||||
mediaType: options.singleCertificate
|
||||
? bundle_1.BUNDLE_V03_MEDIA_TYPE
|
||||
: bundle_1.BUNDLE_V02_MEDIA_TYPE,
|
||||
content: {
|
||||
$case: 'messageSignature',
|
||||
messageSignature: {
|
||||
messageDigest: {
|
||||
algorithm: protobuf_specs_1.HashAlgorithm.SHA2_256,
|
||||
digest: options.digest,
|
||||
},
|
||||
signature: options.signature,
|
||||
},
|
||||
},
|
||||
verificationMaterial: toVerificationMaterial(options),
|
||||
};
|
||||
}
|
||||
exports.toMessageSignatureBundle = toMessageSignatureBundle;
|
||||
// DSSE envelope bundle - $case: 'dsseEnvelope'
|
||||
function toDSSEBundle(options) {
|
||||
return {
|
||||
mediaType: options.singleCertificate
|
||||
? bundle_1.BUNDLE_V03_MEDIA_TYPE
|
||||
: bundle_1.BUNDLE_V02_MEDIA_TYPE,
|
||||
content: {
|
||||
$case: 'dsseEnvelope',
|
||||
dsseEnvelope: toEnvelope(options),
|
||||
},
|
||||
verificationMaterial: toVerificationMaterial(options),
|
||||
};
|
||||
}
|
||||
exports.toDSSEBundle = toDSSEBundle;
|
||||
function toEnvelope(options) {
|
||||
return {
|
||||
payloadType: options.artifactType,
|
||||
payload: options.artifact,
|
||||
signatures: [toSignature(options)],
|
||||
};
|
||||
}
|
||||
function toSignature(options) {
|
||||
return {
|
||||
keyid: options.keyHint || '',
|
||||
sig: options.signature,
|
||||
};
|
||||
}
|
||||
// Verification material
|
||||
function toVerificationMaterial(options) {
|
||||
return {
|
||||
content: toKeyContent(options),
|
||||
tlogEntries: [],
|
||||
timestampVerificationData: { rfc3161Timestamps: [] },
|
||||
};
|
||||
}
|
||||
function toKeyContent(options) {
|
||||
if (options.certificate) {
|
||||
if (options.singleCertificate) {
|
||||
return {
|
||||
$case: 'certificate',
|
||||
certificate: { rawBytes: options.certificate },
|
||||
};
|
||||
}
|
||||
else {
|
||||
return {
|
||||
$case: 'x509CertificateChain',
|
||||
x509CertificateChain: {
|
||||
certificates: [{ rawBytes: options.certificate }],
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
else {
|
||||
return {
|
||||
$case: 'publicKey',
|
||||
publicKey: {
|
||||
hint: options.keyHint || '',
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
74
node_modules/@sigstore/bundle/dist/bundle.d.ts
generated
vendored
Normal file
74
node_modules/@sigstore/bundle/dist/bundle.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
import type { Bundle as ProtoBundle, InclusionProof as ProtoInclusionProof, MessageSignature as ProtoMessageSignature, TransparencyLogEntry as ProtoTransparencyLogEntry, VerificationMaterial as ProtoVerificationMaterial } from '@sigstore/protobuf-specs';
|
||||
import type { WithRequired } from './utility';
|
||||
export declare const BUNDLE_V01_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.1";
|
||||
export declare const BUNDLE_V02_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.2";
|
||||
export declare const BUNDLE_V03_LEGACY_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.3";
|
||||
export declare const BUNDLE_V03_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle.v0.3+json";
|
||||
type DsseEnvelopeContent = Extract<ProtoBundle['content'], {
|
||||
$case: 'dsseEnvelope';
|
||||
}>;
|
||||
type MessageSignatureContent = Extract<ProtoBundle['content'], {
|
||||
$case: 'messageSignature';
|
||||
}>;
|
||||
export type MessageSignature = WithRequired<ProtoMessageSignature, 'messageDigest'>;
|
||||
export type VerificationMaterial = WithRequired<ProtoVerificationMaterial, 'content'>;
|
||||
export type TransparencyLogEntry = WithRequired<ProtoTransparencyLogEntry, 'logId' | 'kindVersion'>;
|
||||
export type InclusionProof = WithRequired<ProtoInclusionProof, 'checkpoint'>;
|
||||
export type TLogEntryWithInclusionPromise = WithRequired<TransparencyLogEntry, 'inclusionPromise'>;
|
||||
export type TLogEntryWithInclusionProof = TransparencyLogEntry & {
|
||||
inclusionProof: InclusionProof;
|
||||
};
|
||||
export type Bundle = ProtoBundle & {
|
||||
verificationMaterial: VerificationMaterial & {
|
||||
tlogEntries: TransparencyLogEntry[];
|
||||
};
|
||||
content: (MessageSignatureContent & {
|
||||
messageSignature: MessageSignature;
|
||||
}) | DsseEnvelopeContent;
|
||||
};
|
||||
export type BundleV01 = Bundle & {
|
||||
verificationMaterial: Bundle['verificationMaterial'] & {
|
||||
tlogEntries: TLogEntryWithInclusionPromise[];
|
||||
};
|
||||
};
|
||||
export type BundleLatest = Bundle & {
|
||||
verificationMaterial: Bundle['verificationMaterial'] & {
|
||||
tlogEntries: TLogEntryWithInclusionProof[];
|
||||
};
|
||||
};
|
||||
export type BundleWithCertificateChain = Bundle & {
|
||||
verificationMaterial: Bundle['verificationMaterial'] & {
|
||||
content: Extract<VerificationMaterial['content'], {
|
||||
$case: 'x509CertificateChain';
|
||||
}>;
|
||||
};
|
||||
};
|
||||
export type BundleWithSingleCertificate = Bundle & {
|
||||
verificationMaterial: Bundle['verificationMaterial'] & {
|
||||
content: Extract<VerificationMaterial['content'], {
|
||||
$case: 'certificate';
|
||||
}>;
|
||||
};
|
||||
};
|
||||
export type BundleWithPublicKey = Bundle & {
|
||||
verificationMaterial: Bundle['verificationMaterial'] & {
|
||||
content: Extract<VerificationMaterial['content'], {
|
||||
$case: 'publicKey';
|
||||
}>;
|
||||
};
|
||||
};
|
||||
export type BundleWithMessageSignature = Bundle & {
|
||||
content: Extract<Bundle['content'], {
|
||||
$case: 'messageSignature';
|
||||
}>;
|
||||
};
|
||||
export type BundleWithDsseEnvelope = Bundle & {
|
||||
content: Extract<Bundle['content'], {
|
||||
$case: 'dsseEnvelope';
|
||||
}>;
|
||||
};
|
||||
export declare function isBundleWithCertificateChain(b: Bundle): b is BundleWithCertificateChain;
|
||||
export declare function isBundleWithPublicKey(b: Bundle): b is BundleWithPublicKey;
|
||||
export declare function isBundleWithMessageSignature(b: Bundle): b is BundleWithMessageSignature;
|
||||
export declare function isBundleWithDsseEnvelope(b: Bundle): b is BundleWithDsseEnvelope;
|
||||
export {};
|
24
node_modules/@sigstore/bundle/dist/bundle.js
generated
vendored
Normal file
24
node_modules/@sigstore/bundle/dist/bundle.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isBundleWithDsseEnvelope = exports.isBundleWithMessageSignature = exports.isBundleWithPublicKey = exports.isBundleWithCertificateChain = exports.BUNDLE_V03_MEDIA_TYPE = exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = void 0;
|
||||
exports.BUNDLE_V01_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.1';
|
||||
exports.BUNDLE_V02_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.2';
|
||||
exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.3';
|
||||
exports.BUNDLE_V03_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle.v0.3+json';
|
||||
// Type guards for bundle variants.
|
||||
function isBundleWithCertificateChain(b) {
|
||||
return b.verificationMaterial.content.$case === 'x509CertificateChain';
|
||||
}
|
||||
exports.isBundleWithCertificateChain = isBundleWithCertificateChain;
|
||||
function isBundleWithPublicKey(b) {
|
||||
return b.verificationMaterial.content.$case === 'publicKey';
|
||||
}
|
||||
exports.isBundleWithPublicKey = isBundleWithPublicKey;
|
||||
function isBundleWithMessageSignature(b) {
|
||||
return b.content.$case === 'messageSignature';
|
||||
}
|
||||
exports.isBundleWithMessageSignature = isBundleWithMessageSignature;
|
||||
function isBundleWithDsseEnvelope(b) {
|
||||
return b.content.$case === 'dsseEnvelope';
|
||||
}
|
||||
exports.isBundleWithDsseEnvelope = isBundleWithDsseEnvelope;
|
4
node_modules/@sigstore/bundle/dist/error.d.ts
generated
vendored
Normal file
4
node_modules/@sigstore/bundle/dist/error.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
export declare class ValidationError extends Error {
|
||||
fields: string[];
|
||||
constructor(message: string, fields: string[]);
|
||||
}
|
25
node_modules/@sigstore/bundle/dist/error.js
generated
vendored
Normal file
25
node_modules/@sigstore/bundle/dist/error.js
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ValidationError = void 0;
|
||||
/*
|
||||
Copyright 2023 The Sigstore Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
class ValidationError extends Error {
|
||||
constructor(message, fields) {
|
||||
super(message);
|
||||
this.fields = fields;
|
||||
}
|
||||
}
|
||||
exports.ValidationError = ValidationError;
|
8
node_modules/@sigstore/bundle/dist/index.d.ts
generated
vendored
Normal file
8
node_modules/@sigstore/bundle/dist/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
export { toDSSEBundle, toMessageSignatureBundle } from './build';
|
||||
export { BUNDLE_V01_MEDIA_TYPE, BUNDLE_V02_MEDIA_TYPE, BUNDLE_V03_LEGACY_MEDIA_TYPE, BUNDLE_V03_MEDIA_TYPE, isBundleWithCertificateChain, isBundleWithDsseEnvelope, isBundleWithMessageSignature, isBundleWithPublicKey, } from './bundle';
|
||||
export { ValidationError } from './error';
|
||||
export { bundleFromJSON, bundleToJSON, envelopeFromJSON, envelopeToJSON, } from './serialized';
|
||||
export { assertBundle, assertBundleLatest, assertBundleV01, assertBundleV02, isBundleV01, } from './validate';
|
||||
export type { Envelope, PublicKeyIdentifier, RFC3161SignedTimestamp, Signature, TimestampVerificationData, X509Certificate, X509CertificateChain, } from '@sigstore/protobuf-specs';
|
||||
export type { Bundle, BundleLatest, BundleV01, BundleWithCertificateChain, BundleWithDsseEnvelope, BundleWithMessageSignature, BundleWithPublicKey, BundleWithSingleCertificate, InclusionProof, MessageSignature, TLogEntryWithInclusionPromise, TLogEntryWithInclusionProof, TransparencyLogEntry, VerificationMaterial, } from './bundle';
|
||||
export type { SerializedBundle, SerializedEnvelope } from './serialized';
|
43
node_modules/@sigstore/bundle/dist/index.js
generated
vendored
Normal file
43
node_modules/@sigstore/bundle/dist/index.js
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isBundleV01 = exports.assertBundleV02 = exports.assertBundleV01 = exports.assertBundleLatest = exports.assertBundle = exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = exports.ValidationError = exports.isBundleWithPublicKey = exports.isBundleWithMessageSignature = exports.isBundleWithDsseEnvelope = exports.isBundleWithCertificateChain = exports.BUNDLE_V03_MEDIA_TYPE = exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = exports.toMessageSignatureBundle = exports.toDSSEBundle = void 0;
|
||||
/*
|
||||
Copyright 2023 The Sigstore Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
var build_1 = require("./build");
|
||||
Object.defineProperty(exports, "toDSSEBundle", { enumerable: true, get: function () { return build_1.toDSSEBundle; } });
|
||||
Object.defineProperty(exports, "toMessageSignatureBundle", { enumerable: true, get: function () { return build_1.toMessageSignatureBundle; } });
|
||||
var bundle_1 = require("./bundle");
|
||||
Object.defineProperty(exports, "BUNDLE_V01_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V01_MEDIA_TYPE; } });
|
||||
Object.defineProperty(exports, "BUNDLE_V02_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V02_MEDIA_TYPE; } });
|
||||
Object.defineProperty(exports, "BUNDLE_V03_LEGACY_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V03_LEGACY_MEDIA_TYPE; } });
|
||||
Object.defineProperty(exports, "BUNDLE_V03_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V03_MEDIA_TYPE; } });
|
||||
Object.defineProperty(exports, "isBundleWithCertificateChain", { enumerable: true, get: function () { return bundle_1.isBundleWithCertificateChain; } });
|
||||
Object.defineProperty(exports, "isBundleWithDsseEnvelope", { enumerable: true, get: function () { return bundle_1.isBundleWithDsseEnvelope; } });
|
||||
Object.defineProperty(exports, "isBundleWithMessageSignature", { enumerable: true, get: function () { return bundle_1.isBundleWithMessageSignature; } });
|
||||
Object.defineProperty(exports, "isBundleWithPublicKey", { enumerable: true, get: function () { return bundle_1.isBundleWithPublicKey; } });
|
||||
var error_1 = require("./error");
|
||||
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return error_1.ValidationError; } });
|
||||
var serialized_1 = require("./serialized");
|
||||
Object.defineProperty(exports, "bundleFromJSON", { enumerable: true, get: function () { return serialized_1.bundleFromJSON; } });
|
||||
Object.defineProperty(exports, "bundleToJSON", { enumerable: true, get: function () { return serialized_1.bundleToJSON; } });
|
||||
Object.defineProperty(exports, "envelopeFromJSON", { enumerable: true, get: function () { return serialized_1.envelopeFromJSON; } });
|
||||
Object.defineProperty(exports, "envelopeToJSON", { enumerable: true, get: function () { return serialized_1.envelopeToJSON; } });
|
||||
var validate_1 = require("./validate");
|
||||
Object.defineProperty(exports, "assertBundle", { enumerable: true, get: function () { return validate_1.assertBundle; } });
|
||||
Object.defineProperty(exports, "assertBundleLatest", { enumerable: true, get: function () { return validate_1.assertBundleLatest; } });
|
||||
Object.defineProperty(exports, "assertBundleV01", { enumerable: true, get: function () { return validate_1.assertBundleV01; } });
|
||||
Object.defineProperty(exports, "assertBundleV02", { enumerable: true, get: function () { return validate_1.assertBundleV02; } });
|
||||
Object.defineProperty(exports, "isBundleV01", { enumerable: true, get: function () { return validate_1.isBundleV01; } });
|
74
node_modules/@sigstore/bundle/dist/serialized.d.ts
generated
vendored
Normal file
74
node_modules/@sigstore/bundle/dist/serialized.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
import { Envelope } from '@sigstore/protobuf-specs';
|
||||
import { Bundle } from './bundle';
|
||||
import type { OneOf } from './utility';
|
||||
export declare const bundleFromJSON: (obj: unknown) => Bundle;
|
||||
export declare const bundleToJSON: (bundle: Bundle) => SerializedBundle;
|
||||
export declare const envelopeFromJSON: (obj: unknown) => Envelope;
|
||||
export declare const envelopeToJSON: (envelope: Envelope) => SerializedEnvelope;
|
||||
type SerializedTLogEntry = {
|
||||
logIndex: string;
|
||||
logId: {
|
||||
keyId: string;
|
||||
};
|
||||
kindVersion: {
|
||||
kind: string;
|
||||
version: string;
|
||||
} | undefined;
|
||||
integratedTime: string;
|
||||
inclusionPromise: {
|
||||
signedEntryTimestamp: string;
|
||||
} | undefined;
|
||||
inclusionProof: {
|
||||
logIndex: string;
|
||||
rootHash: string;
|
||||
treeSize: string;
|
||||
hashes: string[];
|
||||
checkpoint: {
|
||||
envelope: string;
|
||||
};
|
||||
} | undefined;
|
||||
canonicalizedBody: string;
|
||||
};
|
||||
type SerializedTimestampVerificationData = {
|
||||
rfc3161Timestamps: {
|
||||
signedTimestamp: string;
|
||||
}[];
|
||||
};
|
||||
type SerializedMessageSignature = {
|
||||
messageDigest: {
|
||||
algorithm: string;
|
||||
digest: string;
|
||||
} | undefined;
|
||||
signature: string;
|
||||
};
|
||||
export type SerializedEnvelope = {
|
||||
payload: string;
|
||||
payloadType: string;
|
||||
signatures: {
|
||||
sig: string;
|
||||
keyid: string;
|
||||
}[];
|
||||
};
|
||||
export type SerializedBundle = {
|
||||
mediaType: string;
|
||||
verificationMaterial: (OneOf<{
|
||||
x509CertificateChain: {
|
||||
certificates: {
|
||||
rawBytes: string;
|
||||
}[];
|
||||
};
|
||||
publicKey: {
|
||||
hint: string;
|
||||
};
|
||||
certificate: {
|
||||
rawBytes: string;
|
||||
};
|
||||
}> | undefined) & {
|
||||
tlogEntries: SerializedTLogEntry[];
|
||||
timestampVerificationData: SerializedTimestampVerificationData | undefined;
|
||||
};
|
||||
} & OneOf<{
|
||||
dsseEnvelope: SerializedEnvelope;
|
||||
messageSignature: SerializedMessageSignature;
|
||||
}>;
|
||||
export {};
|
49
node_modules/@sigstore/bundle/dist/serialized.js
generated
vendored
Normal file
49
node_modules/@sigstore/bundle/dist/serialized.js
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = void 0;
|
||||
/*
|
||||
Copyright 2023 The Sigstore Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
const protobuf_specs_1 = require("@sigstore/protobuf-specs");
|
||||
const bundle_1 = require("./bundle");
|
||||
const validate_1 = require("./validate");
|
||||
const bundleFromJSON = (obj) => {
|
||||
const bundle = protobuf_specs_1.Bundle.fromJSON(obj);
|
||||
switch (bundle.mediaType) {
|
||||
case bundle_1.BUNDLE_V01_MEDIA_TYPE:
|
||||
(0, validate_1.assertBundleV01)(bundle);
|
||||
break;
|
||||
case bundle_1.BUNDLE_V02_MEDIA_TYPE:
|
||||
(0, validate_1.assertBundleV02)(bundle);
|
||||
break;
|
||||
default:
|
||||
(0, validate_1.assertBundleLatest)(bundle);
|
||||
break;
|
||||
}
|
||||
return bundle;
|
||||
};
|
||||
exports.bundleFromJSON = bundleFromJSON;
|
||||
const bundleToJSON = (bundle) => {
|
||||
return protobuf_specs_1.Bundle.toJSON(bundle);
|
||||
};
|
||||
exports.bundleToJSON = bundleToJSON;
|
||||
const envelopeFromJSON = (obj) => {
|
||||
return protobuf_specs_1.Envelope.fromJSON(obj);
|
||||
};
|
||||
exports.envelopeFromJSON = envelopeFromJSON;
|
||||
const envelopeToJSON = (envelope) => {
|
||||
return protobuf_specs_1.Envelope.toJSON(envelope);
|
||||
};
|
||||
exports.envelopeToJSON = envelopeToJSON;
|
14
node_modules/@sigstore/bundle/dist/utility.d.ts
generated
vendored
Normal file
14
node_modules/@sigstore/bundle/dist/utility.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
type ValueOf<Obj> = Obj[keyof Obj];
|
||||
type OneOnly<Obj, K extends keyof Obj> = {
|
||||
[key in Exclude<keyof Obj, K>]: undefined;
|
||||
} & {
|
||||
[key in K]: Obj[K];
|
||||
};
|
||||
type OneOfByKey<Obj> = {
|
||||
[key in keyof Obj]: OneOnly<Obj, key>;
|
||||
};
|
||||
export type OneOf<T> = ValueOf<OneOfByKey<T>>;
|
||||
export type WithRequired<T, K extends keyof T> = T & {
|
||||
[P in K]-?: NonNullable<T[P]>;
|
||||
};
|
||||
export {};
|
2
node_modules/@sigstore/bundle/dist/utility.js
generated
vendored
Normal file
2
node_modules/@sigstore/bundle/dist/utility.js
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
7
node_modules/@sigstore/bundle/dist/validate.d.ts
generated
vendored
Normal file
7
node_modules/@sigstore/bundle/dist/validate.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type { Bundle as ProtoBundle } from '@sigstore/protobuf-specs';
|
||||
import type { Bundle, BundleLatest, BundleV01 } from './bundle';
|
||||
export declare function assertBundle(b: ProtoBundle): asserts b is Bundle;
|
||||
export declare function assertBundleV01(b: ProtoBundle): asserts b is BundleV01;
|
||||
export declare function isBundleV01(b: Bundle): b is BundleV01;
|
||||
export declare function assertBundleV02(b: ProtoBundle): asserts b is BundleLatest;
|
||||
export declare function assertBundleLatest(b: ProtoBundle): asserts b is BundleLatest;
|
199
node_modules/@sigstore/bundle/dist/validate.js
generated
vendored
Normal file
199
node_modules/@sigstore/bundle/dist/validate.js
generated
vendored
Normal file
|
@ -0,0 +1,199 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.assertBundleLatest = exports.assertBundleV02 = exports.isBundleV01 = exports.assertBundleV01 = exports.assertBundle = void 0;
|
||||
/*
|
||||
Copyright 2023 The Sigstore Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
const error_1 = require("./error");
|
||||
// Performs basic validation of a Sigstore bundle to ensure that all required
|
||||
// fields are populated. This is not a complete validation of the bundle, but
|
||||
// rather a check that the bundle is in a valid state to be processed by the
|
||||
// rest of the code.
|
||||
function assertBundle(b) {
|
||||
const invalidValues = validateBundleBase(b);
|
||||
if (invalidValues.length > 0) {
|
||||
throw new error_1.ValidationError('invalid bundle', invalidValues);
|
||||
}
|
||||
}
|
||||
exports.assertBundle = assertBundle;
|
||||
// Asserts that the given bundle conforms to the v0.1 bundle format.
|
||||
function assertBundleV01(b) {
|
||||
const invalidValues = [];
|
||||
invalidValues.push(...validateBundleBase(b));
|
||||
invalidValues.push(...validateInclusionPromise(b));
|
||||
if (invalidValues.length > 0) {
|
||||
throw new error_1.ValidationError('invalid v0.1 bundle', invalidValues);
|
||||
}
|
||||
}
|
||||
exports.assertBundleV01 = assertBundleV01;
|
||||
// Type guard to determine if Bundle is a v0.1 bundle.
|
||||
function isBundleV01(b) {
|
||||
try {
|
||||
assertBundleV01(b);
|
||||
return true;
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
exports.isBundleV01 = isBundleV01;
|
||||
// Asserts that the given bundle conforms to the v0.2 bundle format.
|
||||
function assertBundleV02(b) {
|
||||
const invalidValues = [];
|
||||
invalidValues.push(...validateBundleBase(b));
|
||||
invalidValues.push(...validateInclusionProof(b));
|
||||
if (invalidValues.length > 0) {
|
||||
throw new error_1.ValidationError('invalid v0.2 bundle', invalidValues);
|
||||
}
|
||||
}
|
||||
exports.assertBundleV02 = assertBundleV02;
|
||||
// Asserts that the given bundle conforms to the newest (0.3) bundle format.
|
||||
function assertBundleLatest(b) {
|
||||
const invalidValues = [];
|
||||
invalidValues.push(...validateBundleBase(b));
|
||||
invalidValues.push(...validateInclusionProof(b));
|
||||
invalidValues.push(...validateNoCertificateChain(b));
|
||||
if (invalidValues.length > 0) {
|
||||
throw new error_1.ValidationError('invalid bundle', invalidValues);
|
||||
}
|
||||
}
|
||||
exports.assertBundleLatest = assertBundleLatest;
|
||||
function validateBundleBase(b) {
|
||||
const invalidValues = [];
|
||||
// Media type validation
|
||||
if (b.mediaType === undefined ||
|
||||
(!b.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/) &&
|
||||
!b.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))) {
|
||||
invalidValues.push('mediaType');
|
||||
}
|
||||
// Content-related validation
|
||||
if (b.content === undefined) {
|
||||
invalidValues.push('content');
|
||||
}
|
||||
else {
|
||||
switch (b.content.$case) {
|
||||
case 'messageSignature':
|
||||
if (b.content.messageSignature.messageDigest === undefined) {
|
||||
invalidValues.push('content.messageSignature.messageDigest');
|
||||
}
|
||||
else {
|
||||
if (b.content.messageSignature.messageDigest.digest.length === 0) {
|
||||
invalidValues.push('content.messageSignature.messageDigest.digest');
|
||||
}
|
||||
}
|
||||
if (b.content.messageSignature.signature.length === 0) {
|
||||
invalidValues.push('content.messageSignature.signature');
|
||||
}
|
||||
break;
|
||||
case 'dsseEnvelope':
|
||||
if (b.content.dsseEnvelope.payload.length === 0) {
|
||||
invalidValues.push('content.dsseEnvelope.payload');
|
||||
}
|
||||
if (b.content.dsseEnvelope.signatures.length !== 1) {
|
||||
invalidValues.push('content.dsseEnvelope.signatures');
|
||||
}
|
||||
else {
|
||||
if (b.content.dsseEnvelope.signatures[0].sig.length === 0) {
|
||||
invalidValues.push('content.dsseEnvelope.signatures[0].sig');
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Verification material-related validation
|
||||
if (b.verificationMaterial === undefined) {
|
||||
invalidValues.push('verificationMaterial');
|
||||
}
|
||||
else {
|
||||
if (b.verificationMaterial.content === undefined) {
|
||||
invalidValues.push('verificationMaterial.content');
|
||||
}
|
||||
else {
|
||||
switch (b.verificationMaterial.content.$case) {
|
||||
case 'x509CertificateChain':
|
||||
if (b.verificationMaterial.content.x509CertificateChain.certificates
|
||||
.length === 0) {
|
||||
invalidValues.push('verificationMaterial.content.x509CertificateChain.certificates');
|
||||
}
|
||||
b.verificationMaterial.content.x509CertificateChain.certificates.forEach((cert, i) => {
|
||||
if (cert.rawBytes.length === 0) {
|
||||
invalidValues.push(`verificationMaterial.content.x509CertificateChain.certificates[${i}].rawBytes`);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'certificate':
|
||||
if (b.verificationMaterial.content.certificate.rawBytes.length === 0) {
|
||||
invalidValues.push('verificationMaterial.content.certificate.rawBytes');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (b.verificationMaterial.tlogEntries === undefined) {
|
||||
invalidValues.push('verificationMaterial.tlogEntries');
|
||||
}
|
||||
else {
|
||||
if (b.verificationMaterial.tlogEntries.length > 0) {
|
||||
b.verificationMaterial.tlogEntries.forEach((entry, i) => {
|
||||
if (entry.logId === undefined) {
|
||||
invalidValues.push(`verificationMaterial.tlogEntries[${i}].logId`);
|
||||
}
|
||||
if (entry.kindVersion === undefined) {
|
||||
invalidValues.push(`verificationMaterial.tlogEntries[${i}].kindVersion`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return invalidValues;
|
||||
}
|
||||
// Necessary for V01 bundles
|
||||
function validateInclusionPromise(b) {
|
||||
const invalidValues = [];
|
||||
if (b.verificationMaterial &&
|
||||
b.verificationMaterial.tlogEntries?.length > 0) {
|
||||
b.verificationMaterial.tlogEntries.forEach((entry, i) => {
|
||||
if (entry.inclusionPromise === undefined) {
|
||||
invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionPromise`);
|
||||
}
|
||||
});
|
||||
}
|
||||
return invalidValues;
|
||||
}
|
||||
// Necessary for V02 and later bundles
|
||||
function validateInclusionProof(b) {
|
||||
const invalidValues = [];
|
||||
if (b.verificationMaterial &&
|
||||
b.verificationMaterial.tlogEntries?.length > 0) {
|
||||
b.verificationMaterial.tlogEntries.forEach((entry, i) => {
|
||||
if (entry.inclusionProof === undefined) {
|
||||
invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof`);
|
||||
}
|
||||
else {
|
||||
if (entry.inclusionProof.checkpoint === undefined) {
|
||||
invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof.checkpoint`);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return invalidValues;
|
||||
}
|
||||
// Necessary for V03 and later bundles
|
||||
function validateNoCertificateChain(b) {
|
||||
const invalidValues = [];
|
||||
if (b.verificationMaterial?.content?.$case === 'x509CertificateChain') {
|
||||
invalidValues.push('verificationMaterial.content.$case');
|
||||
}
|
||||
return invalidValues;
|
||||
}
|
35
node_modules/@sigstore/bundle/package.json
generated
vendored
Normal file
35
node_modules/@sigstore/bundle/package.json
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "@sigstore/bundle",
|
||||
"version": "2.3.2",
|
||||
"description": "Sigstore bundle type",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"clean": "shx rm -rf dist *.tsbuildinfo",
|
||||
"build": "tsc --build",
|
||||
"test": "jest"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"store"
|
||||
],
|
||||
"author": "bdehamer@github.com",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sigstore/sigstore-js.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sigstore/sigstore-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/sigstore/sigstore-js/tree/main/packages/bundle#readme",
|
||||
"publishConfig": {
|
||||
"provenance": true
|
||||
},
|
||||
"dependencies": {
|
||||
"@sigstore/protobuf-specs": "^0.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.14.0 || >=18.0.0"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue