@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.
Files changed (184) hide show
  1. package/lib/buildkit/buildkit.d.ts +3 -3
  2. package/lib/buildkit/buildkit.js +67 -117
  3. package/lib/buildkit/buildkit.js.map +1 -1
  4. package/lib/buildkit/config.js +7 -14
  5. package/lib/buildkit/config.js.map +1 -1
  6. package/lib/buildkit/git.d.ts +1 -1
  7. package/lib/buildkit/git.js +8 -12
  8. package/lib/buildkit/git.js.map +1 -1
  9. package/lib/buildx/bake.d.ts +4 -4
  10. package/lib/buildx/bake.js +76 -93
  11. package/lib/buildx/bake.js.map +1 -1
  12. package/lib/buildx/build.d.ts +5 -5
  13. package/lib/buildx/build.js +44 -78
  14. package/lib/buildx/build.js.map +1 -1
  15. package/lib/buildx/builder.d.ts +2 -2
  16. package/lib/buildx/builder.js +42 -91
  17. package/lib/buildx/builder.js.map +1 -1
  18. package/lib/buildx/buildx.d.ts +3 -3
  19. package/lib/buildx/buildx.js +212 -274
  20. package/lib/buildx/buildx.js.map +1 -1
  21. package/lib/buildx/history.d.ts +2 -2
  22. package/lib/buildx/history.js +226 -284
  23. package/lib/buildx/history.js.map +1 -1
  24. package/lib/buildx/imagetools.d.ts +5 -5
  25. package/lib/buildx/imagetools.js +67 -92
  26. package/lib/buildx/imagetools.js.map +1 -1
  27. package/lib/buildx/install.d.ts +14 -3
  28. package/lib/buildx/install.js +239 -276
  29. package/lib/buildx/install.js.map +1 -1
  30. package/lib/cache.js +88 -138
  31. package/lib/cache.js.map +1 -1
  32. package/lib/compose/compose.js +53 -107
  33. package/lib/compose/compose.js.map +1 -1
  34. package/lib/compose/install.d.ts +2 -2
  35. package/lib/compose/install.js +129 -191
  36. package/lib/compose/install.js.map +1 -1
  37. package/lib/context.js +10 -50
  38. package/lib/context.js.map +1 -1
  39. package/lib/cosign/cosign.js +55 -106
  40. package/lib/cosign/cosign.js.map +1 -1
  41. package/lib/cosign/dockerfile.js +1 -4
  42. package/lib/cosign/dockerfile.js.map +1 -1
  43. package/lib/cosign/install.d.ts +6 -3
  44. package/lib/cosign/install.js +183 -261
  45. package/lib/cosign/install.js.map +1 -1
  46. package/lib/docker/assets.js +15 -24
  47. package/lib/docker/assets.js.map +1 -1
  48. package/lib/docker/docker.d.ts +1 -1
  49. package/lib/docker/docker.js +112 -182
  50. package/lib/docker/docker.js.map +1 -1
  51. package/lib/docker/install.d.ts +3 -3
  52. package/lib/docker/install.js +543 -617
  53. package/lib/docker/install.js.map +1 -1
  54. package/lib/dockerhub.d.ts +1 -1
  55. package/lib/dockerhub.js +67 -125
  56. package/lib/dockerhub.js.map +1 -1
  57. package/lib/exec.js +9 -59
  58. package/lib/exec.js.map +1 -1
  59. package/lib/git.d.ts +2 -1
  60. package/lib/git.js +144 -220
  61. package/lib/git.js.map +1 -1
  62. package/lib/github/artifact.d.ts +19 -0
  63. package/lib/github/artifact.js +49 -0
  64. package/lib/github/artifact.js.map +1 -0
  65. package/lib/{github.d.ts → github/github.d.ts} +4 -8
  66. package/lib/github/github.js +135 -0
  67. package/lib/github/github.js.map +1 -0
  68. package/lib/github/summary.d.ts +20 -0
  69. package/lib/github/summary.js +166 -0
  70. package/lib/github/summary.js.map +1 -0
  71. package/lib/index.js +17 -64
  72. package/lib/index.js.map +1 -1
  73. package/lib/oci/oci.d.ts +2 -2
  74. package/lib/oci/oci.js +52 -104
  75. package/lib/oci/oci.js.map +1 -1
  76. package/lib/regclient/install.d.ts +2 -2
  77. package/lib/regclient/install.js +83 -141
  78. package/lib/regclient/install.js.map +1 -1
  79. package/lib/regclient/regctl.d.ts +1 -1
  80. package/lib/regclient/regctl.js +67 -123
  81. package/lib/regclient/regctl.js.map +1 -1
  82. package/lib/sigstore/sigstore.d.ts +5 -3
  83. package/lib/sigstore/sigstore.js +361 -344
  84. package/lib/sigstore/sigstore.js.map +1 -1
  85. package/lib/toolkit.d.ts +16 -16
  86. package/lib/toolkit.js +49 -37
  87. package/lib/toolkit.js.map +1 -1
  88. package/lib/types/buildkit/buildkit.js +1 -4
  89. package/lib/types/buildkit/buildkit.js.map +1 -1
  90. package/lib/types/buildkit/client.d.ts +2 -2
  91. package/lib/types/buildkit/client.js +1 -2
  92. package/lib/types/buildkit/client.js.map +1 -1
  93. package/lib/types/buildkit/control.d.ts +4 -4
  94. package/lib/types/buildkit/control.js +1 -2
  95. package/lib/types/buildkit/control.js.map +1 -1
  96. package/lib/types/buildkit/git.js +1 -2
  97. package/lib/types/buildkit/git.js.map +1 -1
  98. package/lib/types/buildkit/ops.js +1 -2
  99. package/lib/types/buildkit/ops.js.map +1 -1
  100. package/lib/types/buildkit/rpc.js +1 -2
  101. package/lib/types/buildkit/rpc.js.map +1 -1
  102. package/lib/types/buildx/bake.js +1 -2
  103. package/lib/types/buildx/bake.js.map +1 -1
  104. package/lib/types/buildx/build.js +1 -2
  105. package/lib/types/buildx/build.js.map +1 -1
  106. package/lib/types/buildx/builder.js +1 -2
  107. package/lib/types/buildx/builder.js.map +1 -1
  108. package/lib/types/buildx/buildx.d.ts +1 -1
  109. package/lib/types/buildx/buildx.js +1 -2
  110. package/lib/types/buildx/buildx.js.map +1 -1
  111. package/lib/types/buildx/history.js +1 -2
  112. package/lib/types/buildx/history.js.map +1 -1
  113. package/lib/types/buildx/imagetools.d.ts +3 -3
  114. package/lib/types/buildx/imagetools.js +1 -2
  115. package/lib/types/buildx/imagetools.js.map +1 -1
  116. package/lib/types/compose/compose.d.ts +1 -1
  117. package/lib/types/compose/compose.js +1 -2
  118. package/lib/types/compose/compose.js.map +1 -1
  119. package/lib/types/cosign/cosign.d.ts +1 -1
  120. package/lib/types/cosign/cosign.js +1 -2
  121. package/lib/types/cosign/cosign.js.map +1 -1
  122. package/lib/types/docker/docker.js +1 -2
  123. package/lib/types/docker/docker.js.map +1 -1
  124. package/lib/types/docker/mediatype.js +3 -6
  125. package/lib/types/docker/mediatype.js.map +1 -1
  126. package/lib/types/dockerhub.js +1 -2
  127. package/lib/types/dockerhub.js.map +1 -1
  128. package/lib/types/github/artifact.d.ts +26 -0
  129. package/lib/types/{git.d.ts → github/artifact.js} +3 -3
  130. package/lib/types/github/artifact.js.map +1 -0
  131. package/lib/types/{github.d.ts → github/github.d.ts} +4 -23
  132. package/lib/types/{git.js → github/github.js} +2 -3
  133. package/lib/types/github/github.js.map +1 -0
  134. package/lib/types/github/summary.d.ts +29 -0
  135. package/lib/types/{github.js → github/summary.js} +3 -4
  136. package/lib/types/github/summary.js.map +1 -0
  137. package/lib/types/intoto/intoto.js +2 -5
  138. package/lib/types/intoto/intoto.js.map +1 -1
  139. package/lib/types/intoto/slsa_provenance/v0.2/provenance.js +1 -4
  140. package/lib/types/intoto/slsa_provenance/v0.2/provenance.js.map +1 -1
  141. package/lib/types/oci/config.d.ts +2 -2
  142. package/lib/types/oci/config.js +1 -2
  143. package/lib/types/oci/config.js.map +1 -1
  144. package/lib/types/oci/descriptor.d.ts +1 -1
  145. package/lib/types/oci/descriptor.js +3 -6
  146. package/lib/types/oci/descriptor.js.map +1 -1
  147. package/lib/types/oci/digest.js +1 -2
  148. package/lib/types/oci/digest.js.map +1 -1
  149. package/lib/types/oci/index.d.ts +2 -2
  150. package/lib/types/oci/index.js +1 -2
  151. package/lib/types/oci/index.js.map +1 -1
  152. package/lib/types/oci/layout.js +4 -7
  153. package/lib/types/oci/layout.js.map +1 -1
  154. package/lib/types/oci/manifest.d.ts +2 -2
  155. package/lib/types/oci/manifest.js +1 -2
  156. package/lib/types/oci/manifest.js.map +1 -1
  157. package/lib/types/oci/mediatype.js +6 -9
  158. package/lib/types/oci/mediatype.js.map +1 -1
  159. package/lib/types/oci/oci.d.ts +4 -4
  160. package/lib/types/oci/oci.js +1 -2
  161. package/lib/types/oci/oci.js.map +1 -1
  162. package/lib/types/oci/versioned.js +1 -2
  163. package/lib/types/oci/versioned.js.map +1 -1
  164. package/lib/types/regclient/regclient.d.ts +1 -1
  165. package/lib/types/regclient/regclient.js +1 -2
  166. package/lib/types/regclient/regclient.js.map +1 -1
  167. package/lib/types/sigstore/sigstore.d.ts +11 -2
  168. package/lib/types/sigstore/sigstore.js +4 -7
  169. package/lib/types/sigstore/sigstore.js.map +1 -1
  170. package/lib/types/undock/undock.d.ts +1 -1
  171. package/lib/types/undock/undock.js +1 -2
  172. package/lib/types/undock/undock.js.map +1 -1
  173. package/lib/undock/install.d.ts +2 -2
  174. package/lib/undock/install.js +93 -151
  175. package/lib/undock/install.js.map +1 -1
  176. package/lib/undock/undock.js +88 -141
  177. package/lib/undock/undock.js.map +1 -1
  178. package/lib/util.js +36 -89
  179. package/lib/util.js.map +1 -1
  180. package/package.json +31 -42
  181. package/lib/github.js +0 -421
  182. package/lib/github.js.map +0 -1
  183. package/lib/types/git.js.map +0 -1
  184. 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 2023 actions-toolkit authors
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
- import { Context as GitHubContext } from '@actions/github/lib/context';
17
- export type Context = GitHubContext;
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 { components as OctoOpenApiTypes } from '@octokit/openapi-types';
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
- export type GitHubRepo = OctoOpenApiTypes['schemas']['repository'];
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 interface UploadArtifactOpts {
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- //# sourceMappingURL=git.js.map
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 2023 actions-toolkit authors
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- //# sourceMappingURL=github.js.map
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
- exports.MEDIATYPE_PAYLOAD = 'application/vnd.in-toto+json';
21
- exports.MEDIATYPE_PREDICATE = 'in-toto.io/predicate-type';
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,kHAAkH;AACrG,QAAA,iBAAiB,GAAG,8BAA8B,CAAC;AAEnD,QAAA,mBAAmB,GAAG,2BAA2B,CAAC"}
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
- exports.PREDICATE_SLSA_PROVENANCE = 'https://slsa.dev/provenance/v0.2';
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,mGAAmG;AAEtF,QAAA,yBAAyB,GAAG,kCAAkC,CAAC"}
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>;
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DescriptorEmptyJSON = void 0;
19
- const mediatype_1 = require("./mediatype");
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2CAAoD;AAqBvC,QAAA,mBAAmB,GAAe;IAC7C,SAAS,EAAE,mCAAuB;IAClC,MAAM,EAAE,yEAAyE;IACjF,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,IAAI;CACX,CAAC"}
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"}
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"digest.js","sourceRoot":"","sources":["../../../src/types/oci/digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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;
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/oci/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.IMAGE_BLOBS_DIR_V1 = exports.IMAGE_INDEX_FILE_V1 = exports.IMAGE_LAYOUT_VERSION_V1 = exports.IMAGE_LAYOUT_FILE_V1 = void 0;
19
- exports.IMAGE_LAYOUT_FILE_V1 = 'oci-layout';
20
- exports.IMAGE_LAYOUT_VERSION_V1 = '1.0.0';
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEU,QAAA,oBAAoB,GAAG,YAAY,CAAC;AAEpC,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAElC,QAAA,mBAAmB,GAAG,YAAY,CAAC;AAEnC,QAAA,kBAAkB,GAAG,OAAO,CAAC"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.MEDIATYPE_IMAGE_CONFIG_V1 = exports.MEDIATYPE_EMPTY_JSON_V1 = exports.MEDIATYPE_IMAGE_LAYER_V1 = exports.MEDIATYPE_IMAGE_INDEX_V1 = exports.MEDIATYPE_IMAGE_MANIFEST_V1 = exports.MEDIATYPE_DESCRIPTOR_V1 = void 0;
19
- exports.MEDIATYPE_DESCRIPTOR_V1 = 'application/vnd.oci.descriptor.v1+json';
20
- exports.MEDIATYPE_IMAGE_MANIFEST_V1 = 'application/vnd.oci.image.manifest.v1+json';
21
- exports.MEDIATYPE_IMAGE_INDEX_V1 = 'application/vnd.oci.image.index.v1+json';
22
- exports.MEDIATYPE_IMAGE_LAYER_V1 = 'application/vnd.oci.image.layer.v1.tar';
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEU,QAAA,uBAAuB,GAAG,wCAAwC,CAAC;AAEnE,QAAA,2BAA2B,GAAG,4CAA4C,CAAC;AAE3E,QAAA,wBAAwB,GAAG,yCAAyC,CAAC;AAErE,QAAA,wBAAwB,GAAG,wCAAwC,CAAC;AAEpE,QAAA,uBAAuB,GAAG,mCAAmC,CAAC;AAE9D,QAAA,yBAAyB,GAAG,0CAA0C,CAAC"}
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"}
@@ -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
  }
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
16
+ export {};
18
17
  //# sourceMappingURL=oci.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oci.js","sourceRoot":"","sources":["../../../src/types/oci/oci.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SEARCH_URL = exports.TSASERVER_URL = exports.REKOR_URL = exports.FULCIO_URL = void 0;
19
- exports.FULCIO_URL = 'https://fulcio.sigstore.dev';
20
- exports.REKOR_URL = 'https://rekor.sigstore.dev';
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":";AAAA;;;;;;;;;;;;;;GAcG;;;AAOU,QAAA,UAAU,GAAG,6BAA6B,CAAC;AAC3C,QAAA,SAAS,GAAG,4BAA4B,CAAC;AACzC,QAAA,aAAa,GAAG,gCAAgC,CAAC;AACjD,QAAA,UAAU,GAAG,6BAA6B,CAAC"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"undock.js","sourceRoot":"","sources":["../../../src/types/undock/undock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
  }