@effected/github-actions 0.23.1 → 0.24.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/Action.js +1 -2
- package/ActionCache.js +1 -2
- package/ActionEnvironment.js +1 -2
- package/ActionInput.js +1 -2
- package/ActionLogger.js +1 -2
- package/ActionOutputs.js +1 -2
- package/ActionState.js +1 -2
- package/ActionsIdentityToken.js +1 -2
- package/ActionsProvenance.js +1 -2
- package/Artifact.js +1 -2
- package/BlobEnvelope.js +1 -2
- package/BlobStore.githubCache.js +1 -2
- package/BlobStore.js +1 -2
- package/BlobTransfer.js +1 -2
- package/CacheKey.js +1 -2
- package/CheckDocument.js +1 -2
- package/CheckState.js +1 -2
- package/ChildEnv.js +1 -2
- package/DetachedProcess.js +1 -2
- package/DryRun.js +1 -2
- package/GitHubMarkdown.js +1 -2
- package/GitHubToken.js +1 -2
- package/ManagedDocument.js +1 -2
- package/OidcTokenIssuer.js +1 -2
- package/PackageManagerInstaller.js +1 -2
- package/Secret.js +1 -2
- package/ToolInstaller.js +1 -2
- package/index.d.ts +0 -54
- package/internal/actionsResults.js +1 -2
- package/internal/archiveCommands.js +1 -2
- package/internal/cacheService.js +1 -2
- package/internal/digest.js +1 -2
- package/internal/fsProbe.js +1 -2
- package/internal/jwt.js +1 -2
- package/internal/pnpmExe.js +1 -2
- package/internal/runner.js +1 -2
- package/internal/runnerFile.js +1 -2
- package/internal/shim.js +1 -2
- package/internal/sigv4.js +1 -2
- package/internal/spawn.js +1 -2
- package/internal/twirp.js +1 -2
- package/internal/unstubbed.js +1 -2
- package/package.json +10 -10
package/Action.js
CHANGED
|
@@ -8,7 +8,7 @@ import { NodeServices } from "@effect/platform-node";
|
|
|
8
8
|
import { Cause, Effect, Exit, Layer, LogLevel, Option, References, Result } from "effect";
|
|
9
9
|
import { FetchHttpClient } from "effect/http";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/Action.ts
|
|
12
12
|
/**
|
|
13
13
|
* The default runtime an action executes inside.
|
|
14
14
|
*
|
|
@@ -152,5 +152,4 @@ var Action = class {
|
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
//#endregion
|
|
156
155
|
export { Action, ActionRuntime, describeCause };
|
package/ActionCache.js
CHANGED
|
@@ -13,7 +13,7 @@ import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
|
|
13
13
|
import { GlobPattern, GlobSet } from "@effected/glob";
|
|
14
14
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/ActionCache.ts
|
|
17
17
|
/**
|
|
18
18
|
* Raised when the runner's cache cannot be read or written.
|
|
19
19
|
*
|
|
@@ -379,5 +379,4 @@ var ActionCache = class ActionCache extends Context.Service()("@effected/github-
|
|
|
379
379
|
static layerTest = (overrides = {}) => Layer.succeed(ActionCache, ActionCache.makeTest(overrides));
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
-
//#endregion
|
|
383
382
|
export { ActionCache, ActionCacheError };
|
package/ActionEnvironment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ActionEnvironment.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when the runner environment does not say what an action needs.
|
|
6
6
|
*
|
|
@@ -324,5 +324,4 @@ var ActionEnvironment = class ActionEnvironment extends Context.Service()("@effe
|
|
|
324
324
|
static layerTest = (overrides = {}, payload) => Layer.effect(ActionEnvironment, ActionEnvironment.makeTest(overrides, payload)).pipe(Layer.provide(FileSystem.layerNoop({})));
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
-
//#endregion
|
|
328
327
|
export { ActionEnvironment, ActionEnvironmentError, GitHubContext, RunnerContext };
|
package/ActionInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Config, ConfigProvider, Context, Effect, Schema, SchemaIssue } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ActionInput.ts
|
|
4
4
|
/**
|
|
5
5
|
* The variable name the runner publishes an input under.
|
|
6
6
|
*
|
|
@@ -512,5 +512,4 @@ var ActionInput = class ActionInput {
|
|
|
512
512
|
static layerDefault = ConfigProvider.layer(Effect.map(Effect.context(), (context) => ActionInput.providerOver(Context.getOrUndefined(context, ConfigProvider.ConfigProvider) ?? ConfigProvider.fromEnv())));
|
|
513
513
|
};
|
|
514
514
|
|
|
515
|
-
//#endregion
|
|
516
515
|
export { ActionInput, inputVariable };
|
package/ActionLogger.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
|
2
2
|
import { CommandNeutralizer, WorkflowCommand } from "@effected/github-commands";
|
|
3
3
|
import { Console, Context, Effect, Exit, Inspectable, Layer, LogLevel, Logger, References } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/ActionLogger.ts
|
|
6
6
|
/**
|
|
7
7
|
* Render a log message, which arrives as an array of the values passed to
|
|
8
8
|
* `Effect.log*`.
|
|
@@ -223,5 +223,4 @@ var ActionLogger = class ActionLogger extends Context.Service()("@effected/githu
|
|
|
223
223
|
static layerSilent = Layer.mergeAll(ActionLogger.layerTest(), Logger.layer([]));
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
//#endregion
|
|
227
226
|
export { ActionLogger };
|
package/ActionOutputs.js
CHANGED
|
@@ -4,7 +4,7 @@ import { unstubbed } from "./internal/unstubbed.js";
|
|
|
4
4
|
import { CommandNeutralizer, WorkflowCommand } from "@effected/github-commands";
|
|
5
5
|
import { Console, Context, Effect, FileSystem, Layer, Schema } from "effect";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/ActionOutputs.ts
|
|
8
8
|
/**
|
|
9
9
|
* Raised when an action cannot publish an output.
|
|
10
10
|
*
|
|
@@ -337,5 +337,4 @@ var ActionOutputs = class ActionOutputs extends Context.Service()("@effected/git
|
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
//#endregion
|
|
341
340
|
export { ActionOutputs, DetachedOutputError, InvalidOutputNameError, OutputEncodeError, RecordedOutput, RunnerFileUnavailableError, RunnerFileWriteError };
|
package/ActionState.js
CHANGED
|
@@ -4,7 +4,7 @@ import { unstubbed } from "./internal/unstubbed.js";
|
|
|
4
4
|
import { ActionOutputs } from "./ActionOutputs.js";
|
|
5
5
|
import { Context, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/ActionState.ts
|
|
8
8
|
/**
|
|
9
9
|
* Raised when action state cannot be saved, read or decoded across the phase
|
|
10
10
|
* boundary.
|
|
@@ -157,5 +157,4 @@ var ActionState = class ActionState extends Context.Service()("@effected/github-
|
|
|
157
157
|
static layerTest = (overrides = {}) => Layer.succeed(ActionState, ActionState.makeTest(overrides));
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
//#endregion
|
|
161
160
|
export { ActionState, ActionStateError };
|
package/ActionsIdentityToken.js
CHANGED
|
@@ -2,7 +2,7 @@ import { OidcTokenIssuer } from "./OidcTokenIssuer.js";
|
|
|
2
2
|
import { Effect, Layer } from "effect";
|
|
3
3
|
import { IdentityToken, IdentityTokenError } from "@effected/sbom";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/ActionsIdentityToken.ts
|
|
6
6
|
/**
|
|
7
7
|
* Serves `@effected/sbom`'s `IdentityToken` contract from the runner's own OIDC
|
|
8
8
|
* token service, so signing an SBOM inside a workflow needs no further wiring.
|
|
@@ -58,5 +58,4 @@ var ActionsIdentityToken = class {
|
|
|
58
58
|
}))) })));
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
//#endregion
|
|
62
61
|
export { ActionsIdentityToken };
|
package/ActionsProvenance.js
CHANGED
|
@@ -3,7 +3,7 @@ import { OidcTokenIssuer } from "./OidcTokenIssuer.js";
|
|
|
3
3
|
import { Effect, Option } from "effect";
|
|
4
4
|
import { SlsaProvenance } from "@effected/sbom";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/ActionsProvenance.ts
|
|
7
7
|
/**
|
|
8
8
|
* The server URL a workflow on github.com runs against.
|
|
9
9
|
*
|
|
@@ -100,5 +100,4 @@ var ActionsProvenance = class {
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
//#endregion
|
|
104
103
|
export { ActionsProvenance };
|
package/Artifact.js
CHANGED
|
@@ -12,7 +12,7 @@ import { HttpClient } from "effect/http";
|
|
|
12
12
|
import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
|
13
13
|
import { ChildProcessSpawner } from "effect/process";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// src/Artifact.ts
|
|
16
16
|
/**
|
|
17
17
|
* Raised when an artifact cannot be uploaded, listed, downloaded or deleted.
|
|
18
18
|
*
|
|
@@ -399,5 +399,4 @@ var Artifact = class Artifact extends Context.Service()("@effected/github-action
|
|
|
399
399
|
static layerTest = (overrides = {}) => Layer.succeed(Artifact, Artifact.makeTest(overrides));
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
//#endregion
|
|
403
402
|
export { Artifact, ArtifactError };
|
package/BlobEnvelope.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/BlobEnvelope.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when bytes cannot be read as an envelope.
|
|
6
6
|
*
|
|
@@ -166,5 +166,4 @@ var BlobEnvelope = class {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
//#endregion
|
|
170
169
|
export { BlobEnvelope, BlobMetadataDecodeError, BlobMetadataEncodeError, NotABlobEnvelopeError, TruncatedBlobEnvelopeError, UnsupportedBlobEnvelopeVersionError };
|
package/BlobStore.githubCache.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Effect, Layer, Option } from "effect";
|
|
|
10
10
|
import { HttpClient } from "effect/http";
|
|
11
11
|
import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/BlobStore.githubCache.ts
|
|
14
14
|
/**
|
|
15
15
|
* The `version` every entry is filed under.
|
|
16
16
|
*
|
|
@@ -166,5 +166,4 @@ var GitHubCacheBlobStore = class {
|
|
|
166
166
|
static layerWith = (transfer) => Layer.effect(BlobStore, make(transfer));
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
//#endregion
|
|
170
169
|
export { GitHubCacheBlobStore };
|
package/BlobStore.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Secret } from "./Secret.js";
|
|
|
5
5
|
import { Context, Effect, Layer, Option, Schema } from "effect";
|
|
6
6
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/BlobStore.ts
|
|
9
9
|
/**
|
|
10
10
|
* Raised when a blob cannot be stored or retrieved.
|
|
11
11
|
*
|
|
@@ -193,5 +193,4 @@ const makeS3 = (config) => Effect.gen(function* () {
|
|
|
193
193
|
};
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
//#endregion
|
|
197
196
|
export { BlobStore, BlobStoreError };
|
package/BlobTransfer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/BlobTransfer.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when bytes could not be moved to or from a signed blob url.
|
|
6
6
|
*
|
|
@@ -17,5 +17,4 @@ var BlobTransferError = class extends Schema.TaggedError()("BlobTransferError",
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { BlobTransferError };
|
package/CacheKey.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
|
3
3
|
import { GlobSet } from "@effected/glob";
|
|
4
4
|
import { descend } from "@effected/walker";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/CacheKey.ts
|
|
7
7
|
/**
|
|
8
8
|
* Raised when a file or directory that was going to be hashed could not be
|
|
9
9
|
* read.
|
|
@@ -441,5 +441,4 @@ var CacheKey = class CacheKey extends Schema.Class("CacheKey")(Schema.Struct({
|
|
|
441
441
|
});
|
|
442
442
|
};
|
|
443
443
|
|
|
444
|
-
//#endregion
|
|
445
444
|
export { CacheKey, CacheKeyBadPatternError, CacheKeyReadError };
|
package/CheckDocument.js
CHANGED
|
@@ -3,7 +3,7 @@ import { CheckState } from "./CheckState.js";
|
|
|
3
3
|
import { ManagedDocument } from "./ManagedDocument.js";
|
|
4
4
|
import { Clock, Context, Duration, Effect, Latch, Layer, Ref, Schema, Semaphore } from "effect";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/CheckDocument.ts
|
|
7
7
|
/**
|
|
8
8
|
* What a run knows about one of its checks: the authoritative state, and the
|
|
9
9
|
* presentation facts a renderer projects into the document.
|
|
@@ -311,5 +311,4 @@ var CheckDocument = class CheckDocument extends Context.Service()("@effected/git
|
|
|
311
311
|
};
|
|
312
312
|
const dies = unstubbed("CheckDocument.makeTest");
|
|
313
313
|
|
|
314
|
-
//#endregion
|
|
315
314
|
export { CheckDocument, CheckDocumentError, CheckDocumentStamp, CheckReport };
|
package/CheckState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/CheckState.ts
|
|
4
4
|
/**
|
|
5
5
|
* The kit's check-state vocabulary.
|
|
6
6
|
*
|
|
@@ -71,5 +71,4 @@ const projectCheckState = (state) => {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
//#endregion
|
|
75
74
|
export { CheckState, projectCheckState };
|
package/ChildEnv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ChildEnv.ts
|
|
2
2
|
/**
|
|
3
3
|
* Child-process environment construction: prepending directories to `PATH`
|
|
4
4
|
* without falling into three cross-platform traps.
|
|
@@ -127,5 +127,4 @@ var ChildEnv = class ChildEnv {
|
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
//#endregion
|
|
131
130
|
export { ChildEnv };
|
package/DetachedProcess.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ChildProcessSpawner } from "effect/process";
|
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { closeSync, openSync } from "node:fs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/DetachedProcess.ts
|
|
10
10
|
/**
|
|
11
11
|
* Raised when the log file for a detached child's output cannot be opened.
|
|
12
12
|
*
|
|
@@ -309,5 +309,4 @@ var DetachedProcess = class DetachedProcess {
|
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
//#endregion
|
|
313
312
|
export { DetachedLogUnavailableError, DetachedNotReadyError, DetachedProcess, DetachedSignalFailedError, DetachedSpawnFailedError, InvalidPidError, ProcessId };
|
package/DryRun.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionInput } from "./ActionInput.js";
|
|
2
2
|
import { Config, Context, Effect, Layer } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/DryRun.ts
|
|
5
5
|
/** The input a workflow author sets to rehearse a run. */
|
|
6
6
|
const DEFAULT_INPUT = "dry-run";
|
|
7
7
|
const make = (enabled) => ({
|
|
@@ -69,5 +69,4 @@ var DryRun = class DryRun extends Context.Service()("@effected/github-actions/Dr
|
|
|
69
69
|
static layerTest = (overrides = {}) => Layer.succeed(DryRun, DryRun.makeTest(overrides));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { DryRun };
|
package/GitHubMarkdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Result, Schema, SchemaAST } from "effect";
|
|
2
2
|
import { Code, Html, InlineCode, Link, List, ListItem, Markdown, Paragraph, Root, Table, TableCell, TableRow } from "@effected/markdown";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/GitHubMarkdown.ts
|
|
5
5
|
/**
|
|
6
6
|
* A block node whose value passes through the serializer verbatim, which is
|
|
7
7
|
* exactly how a pre-rendered markdown fragment must travel: GFM structure
|
|
@@ -234,5 +234,4 @@ var GitHubMarkdown = class GitHubMarkdown {
|
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
//#endregion
|
|
238
237
|
export { GitHubMarkdown };
|
package/GitHubToken.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Secret } from "./Secret.js";
|
|
|
3
3
|
import { DateTime, Duration, Effect, Exit, Layer, Option, Result, Schema } from "effect";
|
|
4
4
|
import { GitHubApp, GitHubClient, InstallationToken, TokenPermissions } from "@effected/github";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/GitHubToken.ts
|
|
7
7
|
/**
|
|
8
8
|
* Raised when the token an earlier phase persisted cannot be used.
|
|
9
9
|
*
|
|
@@ -220,5 +220,4 @@ var GitHubToken = class GitHubToken {
|
|
|
220
220
|
});
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
//#endregion
|
|
224
223
|
export { GitHubToken, GitHubTokenError };
|
package/ManagedDocument.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Option, Result, Schema } from "effect";
|
|
2
2
|
import { CommentStyle, SectionDialect, SectionDocument, SectionId } from "@effected/templates";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ManagedDocument.ts
|
|
5
5
|
/**
|
|
6
6
|
* The grammar shared by a document's `namespace`, its `key` and every region
|
|
7
7
|
* key.
|
|
@@ -316,5 +316,4 @@ var ManagedDocument = class ManagedDocument extends Schema.Class("ManagedDocumen
|
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
|
|
319
|
-
//#endregion
|
|
320
319
|
export { ManagedDocument, ManagedDocumentError };
|
package/OidcTokenIssuer.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
|
5
5
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
6
6
|
import * as HttpClientResponse from "effect/http/HttpClientResponse";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/OidcTokenIssuer.ts
|
|
9
9
|
/**
|
|
10
10
|
* Raised when an OIDC token cannot be issued or read.
|
|
11
11
|
*
|
|
@@ -218,5 +218,4 @@ var OidcTokenIssuer = class OidcTokenIssuer extends Context.Service()("@effected
|
|
|
218
218
|
});
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
//#endregion
|
|
222
221
|
export { OidcClaims, OidcTokenError, OidcTokenIssuer };
|
|
@@ -10,7 +10,7 @@ import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect
|
|
|
10
10
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
11
11
|
import { CorepackIntegrityHash, DEFAULT_REGISTRY, PackageManagerPin, PackageManagerPinName } from "@effected/npm";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/PackageManagerInstaller.ts
|
|
14
14
|
/**
|
|
15
15
|
* Raised when a package manager cannot be provisioned on the runner.
|
|
16
16
|
*
|
|
@@ -734,5 +734,4 @@ var PackageManagerInstaller = class PackageManagerInstaller extends Context.Serv
|
|
|
734
734
|
static layerTest = (overrides = {}) => Layer.succeed(PackageManagerInstaller, PackageManagerInstaller.makeTest(overrides));
|
|
735
735
|
};
|
|
736
736
|
|
|
737
|
-
//#endregion
|
|
738
737
|
export { AmbientPackageManager, CachedPackageManager, InstalledPackageManager, PackageManagerInstaller, PackageManagerInstallerError };
|
package/Secret.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionOutputs } from "./ActionOutputs.js";
|
|
2
2
|
import { Config, Effect, Redacted } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Secret.ts
|
|
5
5
|
/**
|
|
6
6
|
* The declassification seam: the **only** place in this package where a
|
|
7
7
|
* `Redacted` value becomes a plain string.
|
|
@@ -198,5 +198,4 @@ var Secret = class Secret {
|
|
|
198
198
|
static adopt = (name) => Config.Redacted(name);
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
-
//#endregion
|
|
202
201
|
export { Secret };
|
package/ToolInstaller.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Context, Effect, FileSystem, Layer, Option, Path, Schedule, Schema, Str
|
|
|
8
8
|
import { HttpClient } from "effect/http";
|
|
9
9
|
import { ChildProcessSpawner } from "effect/process";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/ToolInstaller.ts
|
|
12
12
|
/**
|
|
13
13
|
* Raised when a tool cannot be downloaded, extracted or cached.
|
|
14
14
|
*
|
|
@@ -376,5 +376,4 @@ var ToolInstaller = class ToolInstaller extends Context.Service()("@effected/git
|
|
|
376
376
|
static layerTest = (overrides = {}) => Layer.succeed(ToolInstaller, ToolInstaller.makeTest(overrides));
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
//#endregion
|
|
380
379
|
export { ToolInstaller, ToolInstallerError };
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { ChildProcessSpawner } from "effect/process";
|
|
|
6
6
|
import { IdentityToken, SlsaProvenance } from "@effected/sbom";
|
|
7
7
|
import { BotIdentity, GitHubApp, GitHubClient, InstallationToken, PermissionLevel, RetryPolicy } from "@effected/github";
|
|
8
8
|
import { IntegrityHashBrand, PackageManagerPin } from "@effected/npm";
|
|
9
|
-
//#region src/ActionEnvironment.d.ts
|
|
10
9
|
declare const ActionEnvironmentError_base: Schema.Class<ActionEnvironmentError, Schema.TaggedStruct<"ActionEnvironmentError", {
|
|
11
10
|
/** `missing` — absent or empty; `malformed` — present but unusable. */
|
|
12
11
|
readonly reason: Schema.Literals<readonly ["missing", "malformed"]>;
|
|
@@ -259,8 +258,6 @@ export declare class ActionEnvironment extends ActionEnvironment_base {
|
|
|
259
258
|
*/
|
|
260
259
|
static readonly layerTest: (overrides?: Readonly<Record<string, string>>, payload?: unknown) => Layer.Layer<ActionEnvironment>;
|
|
261
260
|
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/ActionLogger.d.ts
|
|
264
261
|
/**
|
|
265
262
|
* Options for {@link ActionLoggerShape.withBuffer}.
|
|
266
263
|
*
|
|
@@ -453,8 +450,6 @@ export declare class ActionLogger extends ActionLogger_base {
|
|
|
453
450
|
*/
|
|
454
451
|
static readonly layerSilent: Layer.Layer<ActionLogger>;
|
|
455
452
|
}
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region src/ActionOutputs.d.ts
|
|
458
453
|
declare const RunnerFileUnavailableError_base: Schema.Class<RunnerFileUnavailableError, Schema.TaggedStruct<"RunnerFileUnavailableError", {
|
|
459
454
|
/** The runner file involved, by environment variable name. */
|
|
460
455
|
readonly file: Schema.String;
|
|
@@ -735,8 +730,6 @@ export declare class ActionOutputs extends ActionOutputs_base {
|
|
|
735
730
|
*/
|
|
736
731
|
static readonly recording: () => RecordingOutputs;
|
|
737
732
|
}
|
|
738
|
-
//#endregion
|
|
739
|
-
//#region src/ActionState.d.ts
|
|
740
733
|
declare const ActionStateError_base: Schema.Class<ActionStateError, Schema.TaggedStruct<"ActionStateError", {
|
|
741
734
|
/**
|
|
742
735
|
* `missing` — no value was saved under this key in an earlier phase.
|
|
@@ -848,8 +841,6 @@ export declare class ActionState extends ActionState_base {
|
|
|
848
841
|
/** {@link ActionState.makeTest} behind `Layer.succeed`. */
|
|
849
842
|
static readonly layerTest: (overrides?: Partial<ActionStateShape>) => Layer.Layer<ActionState>;
|
|
850
843
|
}
|
|
851
|
-
//#endregion
|
|
852
|
-
//#region src/Action.d.ts
|
|
853
844
|
/**
|
|
854
845
|
* Everything {@link ActionRuntime.layer} provides.
|
|
855
846
|
*
|
|
@@ -999,8 +990,6 @@ export declare class Action {
|
|
|
999
990
|
*/
|
|
1000
991
|
static readonly run: <E, R = never>(program: Effect.Effect<void, E, ActionServices | R>, options?: ActionRunOptions<R>) => Promise<void>;
|
|
1001
992
|
}
|
|
1002
|
-
//#endregion
|
|
1003
|
-
//#region src/BlobTransfer.d.ts
|
|
1004
993
|
declare const BlobTransferError_base: Schema.Class<BlobTransferError, Schema.TaggedStruct<"BlobTransferError", {
|
|
1005
994
|
/** Which direction failed. */
|
|
1006
995
|
readonly reason: Schema.Literals<readonly ["uploadFailed", "downloadFailed"]>;
|
|
@@ -1058,8 +1047,6 @@ interface DataBlobTransfer {
|
|
|
1058
1047
|
/** Download the url's contents. */
|
|
1059
1048
|
readonly downloadToBuffer: (url: string) => Effect.Effect<Uint8Array, BlobTransferError>;
|
|
1060
1049
|
}
|
|
1061
|
-
//#endregion
|
|
1062
|
-
//#region src/CacheKey.d.ts
|
|
1063
1050
|
declare const CacheKeyReadError_base: Schema.Class<CacheKeyReadError, Schema.TaggedStruct<"CacheKeyReadError", {
|
|
1064
1051
|
/** The path being read when it went wrong. */
|
|
1065
1052
|
readonly path: Schema.String;
|
|
@@ -1410,8 +1397,6 @@ export declare class CacheKey extends CacheKey_base {
|
|
|
1410
1397
|
readonly patterns: ReadonlyArray<string>;
|
|
1411
1398
|
}) => Effect.Effect<Option.Option<string>, CacheKeyBadPatternError | CacheKeyReadError, FileSystem.FileSystem | Path.Path>;
|
|
1412
1399
|
}
|
|
1413
|
-
//#endregion
|
|
1414
|
-
//#region src/ActionCache.d.ts
|
|
1415
1400
|
declare const ActionCacheError_base: Schema.Class<ActionCacheError, Schema.TaggedStruct<"ActionCacheError", {
|
|
1416
1401
|
/**
|
|
1417
1402
|
* `misconfigured` — the results backend is not reachable from here (see
|
|
@@ -1550,8 +1535,6 @@ export declare class ActionCache extends ActionCache_base {
|
|
|
1550
1535
|
/** {@link ActionCache.makeTest} behind `Layer.succeed`. */
|
|
1551
1536
|
static readonly layerTest: (overrides?: Partial<ActionCacheShape>) => Layer.Layer<ActionCache>;
|
|
1552
1537
|
}
|
|
1553
|
-
//#endregion
|
|
1554
|
-
//#region src/ActionInput.d.ts
|
|
1555
1538
|
/**
|
|
1556
1539
|
* Options for {@link ActionInput.pairs}.
|
|
1557
1540
|
*
|
|
@@ -1944,8 +1927,6 @@ export declare class ActionInput {
|
|
|
1944
1927
|
*/
|
|
1945
1928
|
static readonly layerDefault: Layer.Layer<never>;
|
|
1946
1929
|
}
|
|
1947
|
-
//#endregion
|
|
1948
|
-
//#region src/OidcTokenIssuer.d.ts
|
|
1949
1930
|
declare const OidcTokenError_base: Schema.Class<OidcTokenError, Schema.TaggedStruct<"OidcTokenError", {
|
|
1950
1931
|
/**
|
|
1951
1932
|
* `unavailable` — the runner did not publish the token-service variables,
|
|
@@ -2114,8 +2095,6 @@ export declare class OidcTokenIssuer extends OidcTokenIssuer_base {
|
|
|
2114
2095
|
*/
|
|
2115
2096
|
static readonly layerFor: (claims: OidcClaims) => Layer.Layer<OidcTokenIssuer>;
|
|
2116
2097
|
}
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region src/ActionsIdentityToken.d.ts
|
|
2119
2098
|
/**
|
|
2120
2099
|
* Serves `@effected/sbom`'s `IdentityToken` contract from the runner's own OIDC
|
|
2121
2100
|
* token service, so signing an SBOM inside a workflow needs no further wiring.
|
|
@@ -2167,8 +2146,6 @@ export declare class ActionsIdentityToken {
|
|
|
2167
2146
|
*/
|
|
2168
2147
|
static readonly layer: Layer.Layer<IdentityToken, never, OidcTokenIssuer>;
|
|
2169
2148
|
}
|
|
2170
|
-
//#endregion
|
|
2171
|
-
//#region src/ActionsProvenance.d.ts
|
|
2172
2149
|
/**
|
|
2173
2150
|
* Builds the current run's SLSA provenance from the runner's OIDC claims: the
|
|
2174
2151
|
* Actions side of `@effected/sbom`'s `SlsaProvenance.forGitHubWorkflow`.
|
|
@@ -2235,8 +2212,6 @@ export declare class ActionsProvenance {
|
|
|
2235
2212
|
*/
|
|
2236
2213
|
static readonly capture: (audience?: string) => Effect.Effect<SlsaProvenance, OidcTokenError, OidcTokenIssuer | ActionEnvironment>;
|
|
2237
2214
|
}
|
|
2238
|
-
//#endregion
|
|
2239
|
-
//#region src/Artifact.d.ts
|
|
2240
2215
|
declare const ArtifactError_base: Schema.Class<ArtifactError, Schema.TaggedStruct<"ArtifactError", {
|
|
2241
2216
|
/**
|
|
2242
2217
|
* `misconfigured` — the results backend is not reachable from here (see
|
|
@@ -2427,8 +2402,6 @@ export declare class Artifact extends Artifact_base {
|
|
|
2427
2402
|
/** {@link Artifact.makeTest} behind `Layer.succeed`. */
|
|
2428
2403
|
static readonly layerTest: (overrides?: Partial<ArtifactShape>) => Layer.Layer<Artifact>;
|
|
2429
2404
|
}
|
|
2430
|
-
//#endregion
|
|
2431
|
-
//#region src/BlobEnvelope.d.ts
|
|
2432
2405
|
declare const NotABlobEnvelopeError_base: Schema.Class<NotABlobEnvelopeError, Schema.TaggedStruct<"NotABlobEnvelopeError", {
|
|
2433
2406
|
/** The underlying failure, preserved structurally. */
|
|
2434
2407
|
readonly cause: Schema.optionalKey<Schema.Defect>;
|
|
@@ -2571,8 +2544,6 @@ export declare class BlobEnvelope {
|
|
|
2571
2544
|
readonly body: Uint8Array;
|
|
2572
2545
|
}, BlobEnvelopeError>;
|
|
2573
2546
|
}
|
|
2574
|
-
//#endregion
|
|
2575
|
-
//#region src/BlobStore.d.ts
|
|
2576
2547
|
declare const BlobStoreError_base: Schema.Class<BlobStoreError, Schema.TaggedStruct<"BlobStoreError", {
|
|
2577
2548
|
/**
|
|
2578
2549
|
* `unreachable` — the store could not be contacted. `refused` — it answered,
|
|
@@ -2719,8 +2690,6 @@ export declare class BlobStore extends BlobStore_base {
|
|
|
2719
2690
|
*/
|
|
2720
2691
|
static readonly layerMemory: Layer.Layer<BlobStore>;
|
|
2721
2692
|
}
|
|
2722
|
-
//#endregion
|
|
2723
|
-
//#region src/BlobStore.githubCache.d.ts
|
|
2724
2693
|
/**
|
|
2725
2694
|
* The {@link BlobStore} backend that stores blobs in the runner's own Actions
|
|
2726
2695
|
* cache.
|
|
@@ -2781,8 +2750,6 @@ export declare class GitHubCacheBlobStore {
|
|
|
2781
2750
|
*/
|
|
2782
2751
|
static readonly layerWith: (transfer: DataBlobTransfer) => Layer.Layer<BlobStore, never, HttpClient.HttpClient | ActionEnvironment>;
|
|
2783
2752
|
}
|
|
2784
|
-
//#endregion
|
|
2785
|
-
//#region src/CheckDocument.d.ts
|
|
2786
2753
|
declare const CheckReport_base: Schema.Class<CheckReport, Schema.Struct<{
|
|
2787
2754
|
/** Where the check is now. The last reported state is the authoritative one. */
|
|
2788
2755
|
readonly state: Schema.Literals<readonly ["running", "pass", "fail", "warn", "user_interaction_required", "skipped", "timeout"]>;
|
|
@@ -3084,8 +3051,6 @@ export declare class CheckDocument extends CheckDocument_base {
|
|
|
3084
3051
|
/** {@link CheckDocument.makeTest} behind a `Layer`. */
|
|
3085
3052
|
static readonly layerTest: (overrides?: Partial<CheckDocumentShape>) => Layer.Layer<CheckDocument>;
|
|
3086
3053
|
}
|
|
3087
|
-
//#endregion
|
|
3088
|
-
//#region src/CheckState.d.ts
|
|
3089
3054
|
/**
|
|
3090
3055
|
* The kit's check-state vocabulary.
|
|
3091
3056
|
*
|
|
@@ -3154,8 +3119,6 @@ type CheckRunProjection = {
|
|
|
3154
3119
|
* @public
|
|
3155
3120
|
*/
|
|
3156
3121
|
export declare const projectCheckState: (state: CheckState) => CheckRunProjection;
|
|
3157
|
-
//#endregion
|
|
3158
|
-
//#region src/ChildEnv.d.ts
|
|
3159
3122
|
/**
|
|
3160
3123
|
* The environment additions {@link ChildEnv.prependPath} builds: exactly one
|
|
3161
3124
|
* entry, keyed by the spelling of `PATH` the base environment already uses.
|
|
@@ -3307,8 +3270,6 @@ export declare class ChildEnv {
|
|
|
3307
3270
|
*/
|
|
3308
3271
|
static needsShell(platform: string): boolean;
|
|
3309
3272
|
}
|
|
3310
|
-
//#endregion
|
|
3311
|
-
//#region src/DetachedProcess.d.ts
|
|
3312
3273
|
declare const DetachedLogUnavailableError_base: Schema.Class<DetachedLogUnavailableError, Schema.TaggedStruct<"DetachedLogUnavailableError", {
|
|
3313
3274
|
/** The log file that could not be opened. */
|
|
3314
3275
|
readonly path: Schema.String;
|
|
@@ -3645,8 +3606,6 @@ export declare class DetachedProcess {
|
|
|
3645
3606
|
*/
|
|
3646
3607
|
static readonly makeTestOps: (overrides?: Partial<DetachedProcessOps>) => DetachedProcessOps;
|
|
3647
3608
|
}
|
|
3648
|
-
//#endregion
|
|
3649
|
-
//#region src/DryRun.d.ts
|
|
3650
3609
|
/**
|
|
3651
3610
|
* The {@link DryRun} service shape.
|
|
3652
3611
|
*
|
|
@@ -3728,8 +3687,6 @@ export declare class DryRun extends DryRun_base {
|
|
|
3728
3687
|
/** {@link DryRun.makeTest} behind `Layer.succeed`. */
|
|
3729
3688
|
static readonly layerTest: (overrides?: Partial<DryRunShape>) => Layer.Layer<DryRun>;
|
|
3730
3689
|
}
|
|
3731
|
-
//#endregion
|
|
3732
|
-
//#region src/GitHubMarkdown.d.ts
|
|
3733
3690
|
/**
|
|
3734
3691
|
* A heading level GitHub renders, `1` through `6`.
|
|
3735
3692
|
*
|
|
@@ -3980,8 +3937,6 @@ export declare class GitHubMarkdown {
|
|
|
3980
3937
|
*/
|
|
3981
3938
|
static raw(markdown: string): string;
|
|
3982
3939
|
}
|
|
3983
|
-
//#endregion
|
|
3984
|
-
//#region src/GitHubToken.d.ts
|
|
3985
3940
|
declare const GitHubTokenError_base: Schema.Class<GitHubTokenError, Schema.TaggedStruct<"GitHubTokenError", {
|
|
3986
3941
|
/**
|
|
3987
3942
|
* One reason, deliberately: everything else that can go wrong here already
|
|
@@ -4169,8 +4124,6 @@ export declare class GitHubToken {
|
|
|
4169
4124
|
*/
|
|
4170
4125
|
static readonly dispose: (options?: ReadOptions | undefined) => Effect.Effect<void, ActionStateError | import("@effected/github").GitHubAppError, ActionState | GitHubApp>;
|
|
4171
4126
|
}
|
|
4172
|
-
//#endregion
|
|
4173
|
-
//#region src/ManagedDocument.d.ts
|
|
4174
4127
|
declare const ManagedDocumentError_base: Schema.Class<ManagedDocumentError, Schema.TaggedStruct<"ManagedDocumentError", {
|
|
4175
4128
|
/** Which ambiguity or refusal was found. */
|
|
4176
4129
|
readonly kind: Schema.Literals<readonly ["unterminatedRegion", "orphanedEnd", "overlappingRegions", "duplicateRegion", "markerInContent", "duplicateDeclaration", "invalidAttribute"]>;
|
|
@@ -4387,8 +4340,6 @@ export declare class ManagedDocument extends ManagedDocument_base {
|
|
|
4387
4340
|
*/
|
|
4388
4341
|
private ensureSentinel;
|
|
4389
4342
|
}
|
|
4390
|
-
//#endregion
|
|
4391
|
-
//#region src/ToolInstaller.d.ts
|
|
4392
4343
|
declare const ToolInstallerError_base: Schema.Class<ToolInstallerError, Schema.TaggedStruct<"ToolInstallerError", {
|
|
4393
4344
|
/**
|
|
4394
4345
|
* `downloadFailed` — the archive could not be fetched. `extractFailed` — the
|
|
@@ -4657,8 +4608,6 @@ export declare class ToolInstaller extends ToolInstaller_base {
|
|
|
4657
4608
|
/** {@link ToolInstaller.makeTest} behind `Layer.succeed`. */
|
|
4658
4609
|
static readonly layerTest: (overrides?: Partial<ToolInstallerShape>) => Layer.Layer<ToolInstaller>;
|
|
4659
4610
|
}
|
|
4660
|
-
//#endregion
|
|
4661
|
-
//#region src/PackageManagerInstaller.d.ts
|
|
4662
4611
|
declare const PackageManagerInstallerError_base: Schema.Class<PackageManagerInstallerError, Schema.TaggedStruct<"PackageManagerInstallerError", {
|
|
4663
4612
|
/**
|
|
4664
4613
|
* `downloadFailed`, `extractFailed` and `cacheFailed` mirror the
|
|
@@ -4961,8 +4910,6 @@ export declare class PackageManagerInstaller extends PackageManagerInstaller_bas
|
|
|
4961
4910
|
/** {@link PackageManagerInstaller.makeTest} behind `Layer.succeed`. */
|
|
4962
4911
|
static readonly layerTest: (overrides?: Partial<PackageManagerInstallerShape>) => Layer.Layer<PackageManagerInstaller>;
|
|
4963
4912
|
}
|
|
4964
|
-
//#endregion
|
|
4965
|
-
//#region src/Secret.d.ts
|
|
4966
4913
|
/**
|
|
4967
4914
|
* The declassification seam: the **only** place in this package where a
|
|
4968
4915
|
* `Redacted` value becomes a plain string.
|
|
@@ -5144,6 +5091,5 @@ export declare class Secret {
|
|
|
5144
5091
|
*/
|
|
5145
5092
|
static readonly adopt: (name: string) => Config.Config<Redacted.Redacted<string>>;
|
|
5146
5093
|
}
|
|
5147
|
-
//#endregion
|
|
5148
5094
|
export { type ActionCacheShape, type ActionEnvironmentShape, type ActionLoggerShape, type ActionOutputError, type ActionOutputsShape, type ActionRunOptions, type ActionServices, type ActionStateShape, type AnnotationProperties, type ArtifactItem, type ArtifactRef, type ArtifactShape, type BlobEnvelopeError, type BlobStoreShape, type CacheKeyError, type CheckDocumentOptions, type CheckDocumentShape, type CheckDocumentSink, type CheckFlushOutcome, type CheckRunConclusion, type CheckRunProjection, type ClientLayerOptions, type DataBlobTransfer, type DetachedProcessError, type DetachedProcessOps, type DetachedSpawnOptions, type DownloadOptions, type DownloadResult, type DryRunShape, type ExtractOptions, type FileBlobTransfer, type GitHubHeadingDepth, type GitHubListOptions, type GitHubRowSchema, type GitHubSchemaTable, type GitHubSchemaTableColumn, type GitHubSchemaTableColumns, type GitHubSchemaTableFormatRequiredKeys, type GitHubSchemaTableFormattedColumn, type GitHubSchemaTableOptions, type ManagedDocumentSource, type OidcTokenIssuerShape, type PackageManagerInstallOptions, type PackageManagerInstallerShape, type PairsOptions, type PathPrependEnv, type PathPrependOptions, type ProvisionFileOptions, type ProvisionOptions, type ProvisionedFile, type ReadOptions, type ReadinessOptions, type RecordedOutputMember, type RecordingOutputs, type S3Config, type StoredBlob, type ToolDownloadOptions, type ToolInstallerShape, type UploadOptions, type UploadResult, type WithBufferOptions, type WithStepOptions, WorkflowCommand };
|
|
5149
5095
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { payloadOf } from "./jwt.js";
|
|
2
2
|
import { Effect, Option, Redacted, Result } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/actionsResults.ts
|
|
5
5
|
/** The variable naming the backend. Absent outside a `uses:` step. */
|
|
6
6
|
const RESULTS_URL = "ACTIONS_RESULTS_URL";
|
|
7
7
|
/** The variable holding the run-scoped credential. Absent outside a `uses:` step. */
|
|
@@ -72,5 +72,4 @@ const resultsBackend = (env) => Effect.gen(function* () {
|
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
export { RESULTS_URL, RUNTIME_TOKEN, backendIdsFrom, misconfiguredDetail, resultsBackend };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChildProcess } from "effect/process";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/archiveCommands.ts
|
|
4
4
|
/** A PowerShell single-quoted literal: `'` becomes `''`, nothing else is special. */
|
|
5
5
|
const pwshLiteral = (value) => `'${value.replaceAll("'", "''")}'`;
|
|
6
6
|
/** A non-interactive pwsh invocation of one command line. */
|
|
@@ -83,5 +83,4 @@ const tarExtractCommand = (options) => {
|
|
|
83
83
|
]);
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
//#endregion
|
|
87
86
|
export { tarExtractCommand, unzipCommand, zipCommand, zipManifest };
|
package/internal/cacheService.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CONFLICT, isOk, stringField } from "./twirp.js";
|
|
2
2
|
import { Effect, Option } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/cacheService.ts
|
|
5
5
|
/** The Twirp service the Actions cache protocol lives under. @internal */
|
|
6
6
|
const CACHE_SERVICE = "github.actions.results.api.v1.CacheService";
|
|
7
7
|
/**
|
|
@@ -50,5 +50,4 @@ const lookupDownload = (client, key, restoreKeys, version) => Effect.map(client.
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
//#endregion
|
|
54
53
|
export { CACHE_SERVICE, finalizeUpload, lookupDownload, reserveUpload };
|
package/internal/digest.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Effect, Stream } from "effect";
|
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import * as Hex from "effect/encoding/Hex";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/internal/digest.ts
|
|
6
6
|
/** The raw SHA-256 of a string or byte array held in memory. @internal */
|
|
7
7
|
const sha256 = (value) => new Uint8Array(createHash("sha256").update(value).digest());
|
|
8
8
|
/** The hex SHA-256 of a string or byte array held in memory. @internal */
|
|
@@ -27,5 +27,4 @@ const digestFile = (fs, file, algorithm) => Effect.suspend(() => {
|
|
|
27
27
|
/** {@link digestFile}, as hex. @internal */
|
|
28
28
|
const digestFileHex = (fs, file, algorithm) => Effect.map(digestFile(fs, file, algorithm), Hex.encode);
|
|
29
29
|
|
|
30
|
-
//#endregion
|
|
31
30
|
export { digestFile, digestFileHex, sha256, sha256Hex };
|
package/internal/fsProbe.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/fsProbe.ts
|
|
4
4
|
/**
|
|
5
5
|
* The entry's type, or `undefined` when nothing readable is there. Absence
|
|
6
6
|
* and unreadability collapse together on purpose: every caller's next move
|
|
@@ -18,5 +18,4 @@ const typeAt = (fs, path) => Effect.map(Effect.option(fs.stat(path)), (info) =>
|
|
|
18
18
|
*/
|
|
19
19
|
const isErrno = (cause, code) => typeof cause === "object" && cause !== null && cause.code === code;
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { isErrno, typeAt };
|
package/internal/jwt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Result } from "effect";
|
|
2
2
|
import * as Base64Url from "effect/encoding/Base64Url";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/jwt.ts
|
|
5
5
|
/**
|
|
6
6
|
* The decoded payload of `token` — the middle segment, base64url JSON —
|
|
7
7
|
* without any check on the signature.
|
|
@@ -38,5 +38,4 @@ const unsignedJwt = (header, payload) => {
|
|
|
38
38
|
return `${segment(header)}.${segment(payload)}.unsigned`;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { payloadOf, unsignedJwt };
|
package/internal/pnpmExe.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Option, Result } from "effect";
|
|
|
2
2
|
import * as Hex from "effect/encoding/Hex";
|
|
3
3
|
import * as Base64 from "effect/encoding/Base64";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/internal/pnpmExe.ts
|
|
6
6
|
/** The prefix every native-binary package name carries. @internal */
|
|
7
7
|
const PNPM_EXE_PREFIX = "@pnpm/exe.";
|
|
8
8
|
/**
|
|
@@ -107,5 +107,4 @@ const strongestSri = (integrity) => {
|
|
|
107
107
|
/** Whether a bin target is a Node script (run with `node`) rather than an executable run directly. @internal */
|
|
108
108
|
const isNodeScript = (target) => /\.[cm]?js$/i.test(target);
|
|
109
109
|
|
|
110
|
-
//#endregion
|
|
111
110
|
export { PNPM_EXE_PREFIX, detectMusl, isNodeScript, pnpmExeTarget, strongestSri };
|
package/internal/runner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Option } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/runner.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether `RUNNER_OS` says Windows. `false` when unset — off a runner, the
|
|
6
6
|
* POSIX shape is the honest default.
|
|
@@ -27,5 +27,4 @@ const isWindowsRunner = (env) => Effect.map(env.getOptional("RUNNER_OS"), (found
|
|
|
27
27
|
*/
|
|
28
28
|
const toolCacheRoot = (env, path) => Effect.map(env.getOptional("RUNNER_TOOL_CACHE"), (found) => Option.getOrElse(found, () => path.join("/tmp", "runner-tool-cache")));
|
|
29
29
|
|
|
30
|
-
//#endregion
|
|
31
30
|
export { isWindowsRunner, toolCacheRoot };
|
package/internal/runnerFile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/runnerFile.ts
|
|
2
2
|
/** The base delimiter for a heredoc block. */
|
|
3
3
|
const BASE_DELIMITER = "EFFECTED_EOF";
|
|
4
4
|
/** A delimiter guaranteed absent from `value`. @internal */
|
|
@@ -44,5 +44,4 @@ const heredocBlock = (name, value) => {
|
|
|
44
44
|
return `${name}<<${delimiter}\n${value}\n${delimiter}\n`;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { delimiterFor, heredocBlock, isUsableName };
|
package/internal/shim.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isNodeScript } from "./pnpmExe.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/shim.ts
|
|
4
4
|
/**
|
|
5
5
|
* The POSIX shim body: an `exec` wrapper so the shim's process *becomes* the
|
|
6
6
|
* target, and `"$@"` so arguments survive quoting intact. A Node script
|
|
@@ -26,5 +26,4 @@ const cmdShim = (target) => isNodeScript(target) ? `@echo off\r\nnode "${target}
|
|
|
26
26
|
*/
|
|
27
27
|
const gitBashShim = (target) => posixShim(target.replaceAll("\\", "/"));
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { cmdShim, gitBashShim, posixShim };
|
package/internal/sigv4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sha256Hex } from "./digest.js";
|
|
2
2
|
import { createHmac } from "node:crypto";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/sigv4.ts
|
|
5
5
|
/**
|
|
6
6
|
* AWS Signature Version 4, for S3-compatible object stores.
|
|
7
7
|
*
|
|
@@ -111,5 +111,4 @@ const sign = (request, credentials) => {
|
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
//#endregion
|
|
115
114
|
export { canonicalize, sha256Hex as digestHex, sign, signingKey, uriEncode };
|
package/internal/spawn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Stream } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/spawn.ts
|
|
4
4
|
/**
|
|
5
5
|
* Spawn `command` once, drain `stdout`+`stderr`, then read the exit code from
|
|
6
6
|
* the same handle. Never fails on a non-zero exit — that is the caller's
|
|
@@ -14,5 +14,4 @@ const spawnOnce = (spawner, command) => Effect.scoped(Effect.gen(function* () {
|
|
|
14
14
|
};
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { spawnOnce };
|
package/internal/twirp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Schedule } from "effect";
|
|
2
2
|
import { HttpClientRequest } from "effect/http";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/twirp.ts
|
|
5
5
|
/**
|
|
6
6
|
* Returned instead of a failure when the backend answers HTTP 409.
|
|
7
7
|
*
|
|
@@ -110,5 +110,4 @@ const stringField = (body, name) => {
|
|
|
110
110
|
/** Whether a Twirp response carries `ok: true`. @internal */
|
|
111
111
|
const isOk = (body) => field(body, "ok") === true;
|
|
112
112
|
|
|
113
|
-
//#endregion
|
|
114
113
|
export { CONFLICT, field, isOk, isRetryable, stringField, twirpCall, twirpFailureFields };
|
package/internal/unstubbed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/unstubbed.ts
|
|
4
4
|
/**
|
|
5
5
|
* The die-on-call members of `<double>.makeTest`: `dies("save")` is an
|
|
6
6
|
* `Effect` that defects naming `save` when run. Each package double binds its
|
|
@@ -12,5 +12,4 @@ const unstubbed = (double) => (member) => Effect.sync(() => {
|
|
|
12
12
|
throw new Error(`${double}: ${member}() was called but not stubbed — pass a \`${member}\` override.`);
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
//#endregion
|
|
16
15
|
export { unstubbed };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/github-actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The GitHub Actions runtime: env, inputs, outputs, state, logging, cache, artifacts, blob storage, OIDC and the token bridge.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@azure/storage-blob": "^12.33.0",
|
|
42
|
-
"@effected/github": "^0.
|
|
43
|
-
"@effected/github-commands": "^0.
|
|
44
|
-
"@effected/glob": "^0.
|
|
45
|
-
"@effected/markdown": "^0.
|
|
46
|
-
"@effected/npm": "^0.
|
|
47
|
-
"@effected/sbom": "^0.
|
|
48
|
-
"@effected/semver": "^0.
|
|
49
|
-
"@effected/templates": "^0.
|
|
50
|
-
"@effected/walker": "^0.
|
|
42
|
+
"@effected/github": "^0.22.0",
|
|
43
|
+
"@effected/github-commands": "^0.6.0",
|
|
44
|
+
"@effected/glob": "^0.14.0",
|
|
45
|
+
"@effected/markdown": "^0.20.0",
|
|
46
|
+
"@effected/npm": "^0.24.0",
|
|
47
|
+
"@effected/sbom": "^0.14.0",
|
|
48
|
+
"@effected/semver": "^0.15.0",
|
|
49
|
+
"@effected/templates": "^0.14.0",
|
|
50
|
+
"@effected/walker": "^0.19.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@effect/platform-node": "^4.0.0",
|