@docker/actions-toolkit 0.75.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/buildkit/buildkit.d.ts +3 -3
- package/lib/buildkit/buildkit.js +67 -117
- package/lib/buildkit/buildkit.js.map +1 -1
- package/lib/buildkit/config.js +7 -14
- package/lib/buildkit/config.js.map +1 -1
- package/lib/buildkit/git.d.ts +1 -1
- package/lib/buildkit/git.js +8 -12
- package/lib/buildkit/git.js.map +1 -1
- package/lib/buildx/bake.d.ts +4 -4
- package/lib/buildx/bake.js +76 -93
- package/lib/buildx/bake.js.map +1 -1
- package/lib/buildx/build.d.ts +5 -5
- package/lib/buildx/build.js +44 -78
- package/lib/buildx/build.js.map +1 -1
- package/lib/buildx/builder.d.ts +2 -2
- package/lib/buildx/builder.js +42 -91
- package/lib/buildx/builder.js.map +1 -1
- package/lib/buildx/buildx.d.ts +3 -3
- package/lib/buildx/buildx.js +212 -274
- package/lib/buildx/buildx.js.map +1 -1
- package/lib/buildx/history.d.ts +2 -2
- package/lib/buildx/history.js +226 -284
- package/lib/buildx/history.js.map +1 -1
- package/lib/buildx/imagetools.d.ts +5 -5
- package/lib/buildx/imagetools.js +67 -92
- package/lib/buildx/imagetools.js.map +1 -1
- package/lib/buildx/install.d.ts +14 -3
- package/lib/buildx/install.js +239 -276
- package/lib/buildx/install.js.map +1 -1
- package/lib/cache.js +88 -138
- package/lib/cache.js.map +1 -1
- package/lib/compose/compose.js +53 -107
- package/lib/compose/compose.js.map +1 -1
- package/lib/compose/install.d.ts +2 -2
- package/lib/compose/install.js +129 -191
- package/lib/compose/install.js.map +1 -1
- package/lib/context.js +10 -50
- package/lib/context.js.map +1 -1
- package/lib/cosign/cosign.js +55 -106
- package/lib/cosign/cosign.js.map +1 -1
- package/lib/cosign/dockerfile.js +1 -4
- package/lib/cosign/dockerfile.js.map +1 -1
- package/lib/cosign/install.d.ts +6 -3
- package/lib/cosign/install.js +183 -261
- package/lib/cosign/install.js.map +1 -1
- package/lib/docker/assets.js +15 -24
- package/lib/docker/assets.js.map +1 -1
- package/lib/docker/docker.d.ts +1 -1
- package/lib/docker/docker.js +112 -182
- package/lib/docker/docker.js.map +1 -1
- package/lib/docker/install.d.ts +3 -3
- package/lib/docker/install.js +543 -617
- package/lib/docker/install.js.map +1 -1
- package/lib/dockerhub.d.ts +1 -1
- package/lib/dockerhub.js +67 -125
- package/lib/dockerhub.js.map +1 -1
- package/lib/exec.js +9 -59
- package/lib/exec.js.map +1 -1
- package/lib/git.d.ts +2 -1
- package/lib/git.js +144 -220
- package/lib/git.js.map +1 -1
- package/lib/github/artifact.d.ts +19 -0
- package/lib/github/artifact.js +49 -0
- package/lib/github/artifact.js.map +1 -0
- package/lib/{github.d.ts → github/github.d.ts} +4 -8
- package/lib/github/github.js +135 -0
- package/lib/github/github.js.map +1 -0
- package/lib/github/summary.d.ts +20 -0
- package/lib/github/summary.js +166 -0
- package/lib/github/summary.js.map +1 -0
- package/lib/index.js +17 -64
- package/lib/index.js.map +1 -1
- package/lib/oci/oci.d.ts +2 -2
- package/lib/oci/oci.js +52 -104
- package/lib/oci/oci.js.map +1 -1
- package/lib/regclient/install.d.ts +2 -2
- package/lib/regclient/install.js +83 -141
- package/lib/regclient/install.js.map +1 -1
- package/lib/regclient/regctl.d.ts +1 -1
- package/lib/regclient/regctl.js +67 -123
- package/lib/regclient/regctl.js.map +1 -1
- package/lib/sigstore/sigstore.d.ts +5 -3
- package/lib/sigstore/sigstore.js +361 -344
- package/lib/sigstore/sigstore.js.map +1 -1
- package/lib/toolkit.d.ts +16 -16
- package/lib/toolkit.js +49 -37
- package/lib/toolkit.js.map +1 -1
- package/lib/types/buildkit/buildkit.js +1 -4
- package/lib/types/buildkit/buildkit.js.map +1 -1
- package/lib/types/buildkit/client.d.ts +2 -2
- package/lib/types/buildkit/client.js +1 -2
- package/lib/types/buildkit/client.js.map +1 -1
- package/lib/types/buildkit/control.d.ts +4 -4
- package/lib/types/buildkit/control.js +1 -2
- package/lib/types/buildkit/control.js.map +1 -1
- package/lib/types/buildkit/git.js +1 -2
- package/lib/types/buildkit/git.js.map +1 -1
- package/lib/types/buildkit/ops.js +1 -2
- package/lib/types/buildkit/ops.js.map +1 -1
- package/lib/types/buildkit/rpc.js +1 -2
- package/lib/types/buildkit/rpc.js.map +1 -1
- package/lib/types/buildx/bake.js +1 -2
- package/lib/types/buildx/bake.js.map +1 -1
- package/lib/types/buildx/build.js +1 -2
- package/lib/types/buildx/build.js.map +1 -1
- package/lib/types/buildx/builder.js +1 -2
- package/lib/types/buildx/builder.js.map +1 -1
- package/lib/types/buildx/buildx.d.ts +1 -1
- package/lib/types/buildx/buildx.js +1 -2
- package/lib/types/buildx/buildx.js.map +1 -1
- package/lib/types/buildx/history.js +1 -2
- package/lib/types/buildx/history.js.map +1 -1
- package/lib/types/buildx/imagetools.d.ts +3 -3
- package/lib/types/buildx/imagetools.js +1 -2
- package/lib/types/buildx/imagetools.js.map +1 -1
- package/lib/types/compose/compose.d.ts +1 -1
- package/lib/types/compose/compose.js +1 -2
- package/lib/types/compose/compose.js.map +1 -1
- package/lib/types/cosign/cosign.d.ts +1 -1
- package/lib/types/cosign/cosign.js +1 -2
- package/lib/types/cosign/cosign.js.map +1 -1
- package/lib/types/docker/docker.js +1 -2
- package/lib/types/docker/docker.js.map +1 -1
- package/lib/types/docker/mediatype.js +3 -6
- package/lib/types/docker/mediatype.js.map +1 -1
- package/lib/types/dockerhub.js +1 -2
- package/lib/types/dockerhub.js.map +1 -1
- package/lib/types/github/artifact.d.ts +26 -0
- package/lib/types/{git.d.ts → github/artifact.js} +3 -3
- package/lib/types/github/artifact.js.map +1 -0
- package/lib/types/{github.d.ts → github/github.d.ts} +4 -23
- package/lib/types/{git.js → github/github.js} +2 -3
- package/lib/types/github/github.js.map +1 -0
- package/lib/types/github/summary.d.ts +29 -0
- package/lib/types/{github.js → github/summary.js} +3 -4
- package/lib/types/github/summary.js.map +1 -0
- package/lib/types/intoto/intoto.js +2 -5
- package/lib/types/intoto/intoto.js.map +1 -1
- package/lib/types/intoto/slsa_provenance/v0.2/provenance.js +1 -4
- package/lib/types/intoto/slsa_provenance/v0.2/provenance.js.map +1 -1
- package/lib/types/oci/config.d.ts +2 -2
- package/lib/types/oci/config.js +1 -2
- package/lib/types/oci/config.js.map +1 -1
- package/lib/types/oci/descriptor.d.ts +1 -1
- package/lib/types/oci/descriptor.js +3 -6
- package/lib/types/oci/descriptor.js.map +1 -1
- package/lib/types/oci/digest.js +1 -2
- package/lib/types/oci/digest.js.map +1 -1
- package/lib/types/oci/index.d.ts +2 -2
- package/lib/types/oci/index.js +1 -2
- package/lib/types/oci/index.js.map +1 -1
- package/lib/types/oci/layout.js +4 -7
- package/lib/types/oci/layout.js.map +1 -1
- package/lib/types/oci/manifest.d.ts +2 -2
- package/lib/types/oci/manifest.js +1 -2
- package/lib/types/oci/manifest.js.map +1 -1
- package/lib/types/oci/mediatype.js +6 -9
- package/lib/types/oci/mediatype.js.map +1 -1
- package/lib/types/oci/oci.d.ts +4 -4
- package/lib/types/oci/oci.js +1 -2
- package/lib/types/oci/oci.js.map +1 -1
- package/lib/types/oci/versioned.js +1 -2
- package/lib/types/oci/versioned.js.map +1 -1
- package/lib/types/regclient/regclient.d.ts +1 -1
- package/lib/types/regclient/regclient.js +1 -2
- package/lib/types/regclient/regclient.js.map +1 -1
- package/lib/types/sigstore/sigstore.d.ts +11 -2
- package/lib/types/sigstore/sigstore.js +4 -7
- package/lib/types/sigstore/sigstore.js.map +1 -1
- package/lib/types/undock/undock.d.ts +1 -1
- package/lib/types/undock/undock.js +1 -2
- package/lib/types/undock/undock.js.map +1 -1
- package/lib/undock/install.d.ts +2 -2
- package/lib/undock/install.js +93 -151
- package/lib/undock/install.js.map +1 -1
- package/lib/undock/undock.js +88 -141
- package/lib/undock/undock.js.map +1 -1
- package/lib/util.js +36 -89
- package/lib/util.js.map +1 -1
- package/package.json +31 -42
- package/lib/github.js +0 -421
- package/lib/github.js.map +0 -1
- package/lib/types/git.js.map +0 -1
- package/lib/types/github.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 actions-toolkit authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export interface UploadOpts {
|
|
17
|
+
filename: string;
|
|
18
|
+
retentionDays?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface UploadResponse {
|
|
21
|
+
id: number;
|
|
22
|
+
filename: string;
|
|
23
|
+
digest: string;
|
|
24
|
+
size: number;
|
|
25
|
+
url: string;
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 actions-toolkit authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=artifact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../../src/types/github/artifact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -14,10 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { AnnotationProperties } from '@actions/core';
|
|
17
|
-
import {
|
|
17
|
+
import type { getOctokit } from '@actions/github';
|
|
18
18
|
import { JwtPayload } from 'jwt-decode';
|
|
19
|
-
import { BakeDefinition } from './buildx/bake';
|
|
20
|
-
import { ExportResponse } from './buildx/history';
|
|
21
19
|
export interface GitHubRelease {
|
|
22
20
|
id: number;
|
|
23
21
|
tag_name: string;
|
|
@@ -30,7 +28,8 @@ export interface GitHubContentOpts {
|
|
|
30
28
|
ref?: string;
|
|
31
29
|
path: string;
|
|
32
30
|
}
|
|
33
|
-
|
|
31
|
+
type Octokit = ReturnType<typeof getOctokit>;
|
|
32
|
+
export type GitHubRepo = Awaited<ReturnType<Octokit['rest']['repos']['get']>>['data'];
|
|
34
33
|
export interface GitHubActionsRuntimeToken extends JwtPayload {
|
|
35
34
|
ac?: string;
|
|
36
35
|
}
|
|
@@ -41,22 +40,4 @@ export interface GitHubActionsRuntimeTokenAC {
|
|
|
41
40
|
export interface GitHubAnnotation extends AnnotationProperties {
|
|
42
41
|
message: string;
|
|
43
42
|
}
|
|
44
|
-
export
|
|
45
|
-
filename: string;
|
|
46
|
-
mimeType?: string;
|
|
47
|
-
retentionDays?: number;
|
|
48
|
-
}
|
|
49
|
-
export interface UploadArtifactResponse {
|
|
50
|
-
id: number;
|
|
51
|
-
filename: string;
|
|
52
|
-
size: number;
|
|
53
|
-
url: string;
|
|
54
|
-
}
|
|
55
|
-
export interface BuildSummaryOpts {
|
|
56
|
-
exportRes: ExportResponse;
|
|
57
|
-
uploadRes?: UploadArtifactResponse;
|
|
58
|
-
inputs?: any;
|
|
59
|
-
bakeDefinition?: BakeDefinition;
|
|
60
|
-
driver?: string;
|
|
61
|
-
endpoint?: string;
|
|
62
|
-
}
|
|
43
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2023 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=github.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/types/github/github.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 actions-toolkit authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import * as core from '@actions/core';
|
|
17
|
+
import { UploadResponse } from './artifact.js';
|
|
18
|
+
import { BakeDefinition } from '../buildx/bake.js';
|
|
19
|
+
import { ExportResponse } from '../buildx/history.js';
|
|
20
|
+
export type SummaryTableRow = Parameters<typeof core.summary.addTable>[0][number];
|
|
21
|
+
export type SummaryTableCell = Exclude<SummaryTableRow[number], string>;
|
|
22
|
+
export interface BuildSummaryOpts {
|
|
23
|
+
exportRes: ExportResponse;
|
|
24
|
+
uploadRes?: UploadResponse;
|
|
25
|
+
inputs?: any;
|
|
26
|
+
bakeDefinition?: BakeDefinition;
|
|
27
|
+
driver?: string;
|
|
28
|
+
endpoint?: string;
|
|
29
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 actions-toolkit authors
|
|
4
3
|
*
|
|
5
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary.js","sourceRoot":"","sources":["../../../src/types/github/summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,9 +13,7 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MEDIATYPE_PREDICATE = exports.MEDIATYPE_PAYLOAD = void 0;
|
|
19
16
|
// https://github.com/in-toto/in-toto-golang/blob/dd6278764ab1dae7301609c7510129888e2fd569/in_toto/envelope.go#L17
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export const MEDIATYPE_PAYLOAD = 'application/vnd.in-toto+json';
|
|
18
|
+
export const MEDIATYPE_PREDICATE = 'in-toto.io/predicate-type';
|
|
22
19
|
//# sourceMappingURL=intoto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intoto.js","sourceRoot":"","sources":["../../../src/types/intoto/intoto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intoto.js","sourceRoot":"","sources":["../../../src/types/intoto/intoto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,kHAAkH;AAClH,MAAM,CAAC,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,8 +13,6 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.PREDICATE_SLSA_PROVENANCE = void 0;
|
|
19
16
|
// https://github.com/in-toto/in-toto-golang/blob/master/in_toto/slsa_provenance/v0.2/provenance.go
|
|
20
|
-
|
|
17
|
+
export const PREDICATE_SLSA_PROVENANCE = 'https://slsa.dev/provenance/v0.2';
|
|
21
18
|
//# sourceMappingURL=provenance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../../../../../src/types/intoto/slsa_provenance/v0.2/provenance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../../../../../src/types/intoto/slsa_provenance/v0.2/provenance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,mGAAmG;AAEnG,MAAM,CAAC,MAAM,yBAAyB,GAAG,kCAAkC,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Digest } from './digest';
|
|
17
|
-
import { Platform } from './descriptor';
|
|
16
|
+
import { Digest } from './digest.js';
|
|
17
|
+
import { Platform } from './descriptor.js';
|
|
18
18
|
export interface ImageConfig {
|
|
19
19
|
User?: string;
|
|
20
20
|
ExposedPorts?: Record<string, unknown>;
|
package/lib/types/oci/config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/types/oci/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/types/oci/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Digest } from './digest';
|
|
16
|
+
import { Digest } from './digest.js';
|
|
17
17
|
export interface Descriptor {
|
|
18
18
|
mediaType: string;
|
|
19
19
|
digest: Digest;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,11 +13,9 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.DescriptorEmptyJSON = {
|
|
21
|
-
mediaType: mediatype_1.MEDIATYPE_EMPTY_JSON_V1,
|
|
16
|
+
import { MEDIATYPE_EMPTY_JSON_V1 } from './mediatype.js';
|
|
17
|
+
export const DescriptorEmptyJSON = {
|
|
18
|
+
mediaType: MEDIATYPE_EMPTY_JSON_V1,
|
|
22
19
|
digest: 'sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a',
|
|
23
20
|
size: 2,
|
|
24
21
|
data: '{}'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../../../src/types/oci/descriptor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../../../src/types/oci/descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAC;AAqBvD,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,SAAS,EAAE,uBAAuB;IAClC,MAAM,EAAE,yEAAyE;IACjF,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,IAAI;CACX,CAAC"}
|
package/lib/types/oci/digest.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=digest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest.js","sourceRoot":"","sources":["../../../src/types/oci/digest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"digest.js","sourceRoot":"","sources":["../../../src/types/oci/digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
package/lib/types/oci/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Versioned } from './versioned';
|
|
17
|
-
import { Descriptor } from './descriptor';
|
|
16
|
+
import { Versioned } from './versioned.js';
|
|
17
|
+
import { Descriptor } from './descriptor.js';
|
|
18
18
|
export interface Index extends Versioned {
|
|
19
19
|
mediaType?: string;
|
|
20
20
|
artifactType?: string;
|
package/lib/types/oci/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/oci/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/oci/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
package/lib/types/oci/layout.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,10 +13,8 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.IMAGE_INDEX_FILE_V1 = 'index.json';
|
|
22
|
-
exports.IMAGE_BLOBS_DIR_V1 = 'blobs';
|
|
16
|
+
export const IMAGE_LAYOUT_FILE_V1 = 'oci-layout';
|
|
17
|
+
export const IMAGE_LAYOUT_VERSION_V1 = '1.0.0';
|
|
18
|
+
export const IMAGE_INDEX_FILE_V1 = 'index.json';
|
|
19
|
+
export const IMAGE_BLOBS_DIR_V1 = 'blobs';
|
|
23
20
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/types/oci/layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/types/oci/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAE/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Descriptor } from './descriptor';
|
|
17
|
-
import { Versioned } from './versioned';
|
|
16
|
+
import { Descriptor } from './descriptor.js';
|
|
17
|
+
import { Versioned } from './versioned.js';
|
|
18
18
|
export interface Manifest extends Versioned {
|
|
19
19
|
mediaType?: string;
|
|
20
20
|
artifactType?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/types/oci/manifest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/types/oci/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,12 +13,10 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.MEDIATYPE_EMPTY_JSON_V1 = 'application/vnd.oci.empty.v1+json';
|
|
24
|
-
exports.MEDIATYPE_IMAGE_CONFIG_V1 = 'application/vnd.oci.image.config.v1+json';
|
|
16
|
+
export const MEDIATYPE_DESCRIPTOR_V1 = 'application/vnd.oci.descriptor.v1+json';
|
|
17
|
+
export const MEDIATYPE_IMAGE_MANIFEST_V1 = 'application/vnd.oci.image.manifest.v1+json';
|
|
18
|
+
export const MEDIATYPE_IMAGE_INDEX_V1 = 'application/vnd.oci.image.index.v1+json';
|
|
19
|
+
export const MEDIATYPE_IMAGE_LAYER_V1 = 'application/vnd.oci.image.layer.v1.tar';
|
|
20
|
+
export const MEDIATYPE_EMPTY_JSON_V1 = 'application/vnd.oci.empty.v1+json';
|
|
21
|
+
export const MEDIATYPE_IMAGE_CONFIG_V1 = 'application/vnd.oci.image.config.v1+json';
|
|
25
22
|
//# sourceMappingURL=mediatype.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediatype.js","sourceRoot":"","sources":["../../../src/types/oci/mediatype.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mediatype.js","sourceRoot":"","sources":["../../../src/types/oci/mediatype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,wCAAwC,CAAC;AAEhF,MAAM,CAAC,MAAM,2BAA2B,GAAG,4CAA4C,CAAC;AAExF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yCAAyC,CAAC;AAElF,MAAM,CAAC,MAAM,wBAAwB,GAAG,wCAAwC,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AAE3E,MAAM,CAAC,MAAM,yBAAyB,GAAG,0CAA0C,CAAC"}
|
package/lib/types/oci/oci.d.ts
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Index } from './index';
|
|
17
|
-
import { ImageLayout } from './layout';
|
|
18
|
-
import { Manifest } from './manifest';
|
|
19
|
-
import { Image } from './config';
|
|
16
|
+
import { Index } from './index.js';
|
|
17
|
+
import { ImageLayout } from './layout.js';
|
|
18
|
+
import { Manifest } from './manifest.js';
|
|
19
|
+
import { Image } from './config.js';
|
|
20
20
|
export interface LoadArchiveOpts {
|
|
21
21
|
file: string;
|
|
22
22
|
}
|
package/lib/types/oci/oci.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=oci.js.map
|
package/lib/types/oci/oci.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oci.js","sourceRoot":"","sources":["../../../src/types/oci/oci.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oci.js","sourceRoot":"","sources":["../../../src/types/oci/oci.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=versioned.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioned.js","sourceRoot":"","sources":["../../../src/types/oci/versioned.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versioned.js","sourceRoot":"","sources":["../../../src/types/oci/versioned.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { GitHubContentOpts } from '../github';
|
|
16
|
+
import { GitHubContentOpts } from '../github/github.js';
|
|
17
17
|
export interface DownloadVersion {
|
|
18
18
|
version: string;
|
|
19
19
|
downloadURL: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2025 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=regclient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regclient.js","sourceRoot":"","sources":["../../../src/types/regclient/regclient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"regclient.js","sourceRoot":"","sources":["../../../src/types/regclient/regclient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { SerializedBundle } from '@sigstore/bundle';
|
|
17
|
-
import { Subject } from '../intoto/intoto';
|
|
18
|
-
import { Platform } from '../oci/descriptor';
|
|
17
|
+
import { Subject } from '../intoto/intoto.js';
|
|
18
|
+
import { Platform } from '../oci/descriptor.js';
|
|
19
19
|
export declare const FULCIO_URL = "https://fulcio.sigstore.dev";
|
|
20
20
|
export declare const REKOR_URL = "https://rekor.sigstore.dev";
|
|
21
21
|
export declare const TSASERVER_URL = "https://timestamp.sigstore.dev";
|
|
@@ -65,3 +65,12 @@ export interface VerifySignedArtifactsResult {
|
|
|
65
65
|
bundlePath: string;
|
|
66
66
|
cosignArgs: Array<string>;
|
|
67
67
|
}
|
|
68
|
+
export interface VerifyArtifactOpts {
|
|
69
|
+
subjectAlternativeName: string | RegExp;
|
|
70
|
+
issuer?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface VerifyArtifactResult {
|
|
73
|
+
payload: SerializedBundle;
|
|
74
|
+
certificate: string;
|
|
75
|
+
tlogID?: string;
|
|
76
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2025 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,10 +13,8 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.TSASERVER_URL = 'https://timestamp.sigstore.dev';
|
|
22
|
-
exports.SEARCH_URL = 'https://search.sigstore.dev';
|
|
16
|
+
export const FULCIO_URL = 'https://fulcio.sigstore.dev';
|
|
17
|
+
export const REKOR_URL = 'https://rekor.sigstore.dev';
|
|
18
|
+
export const TSASERVER_URL = 'https://timestamp.sigstore.dev';
|
|
19
|
+
export const SEARCH_URL = 'https://search.sigstore.dev';
|
|
23
20
|
//# sourceMappingURL=sigstore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigstore.js","sourceRoot":"","sources":["../../../src/types/sigstore/sigstore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sigstore.js","sourceRoot":"","sources":["../../../src/types/sigstore/sigstore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,MAAM,CAAC,MAAM,UAAU,GAAG,6BAA6B,CAAC;AACxD,MAAM,CAAC,MAAM,SAAS,GAAG,4BAA4B,CAAC;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,6BAA6B,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { GitHubContentOpts } from '../github';
|
|
16
|
+
import { GitHubContentOpts } from '../github/github.js';
|
|
17
17
|
export interface DownloadVersion {
|
|
18
18
|
version: string;
|
|
19
19
|
downloadURL: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2024 actions-toolkit authors
|
|
4
3
|
*
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=undock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undock.js","sourceRoot":"","sources":["../../../src/types/undock/undock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"undock.js","sourceRoot":"","sources":["../../../src/types/undock/undock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
package/lib/undock/install.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { GitHubRelease } from '../types/github';
|
|
17
|
-
import { DownloadVersion } from '../types/undock/undock';
|
|
16
|
+
import { GitHubRelease } from '../types/github/github.js';
|
|
17
|
+
import { DownloadVersion } from '../types/undock/undock.js';
|
|
18
18
|
export interface InstallOpts {
|
|
19
19
|
githubToken?: string;
|
|
20
20
|
}
|