Versions 2 to 318
new file, 96 lines
1+// A pipeline run's key (ABSO_KEY_FILE): read from the file the runner wrote, sent only where a token may go,
3+
12+import { credentialLabel, installKey, readConfig, runKey, tokenFor, writeConfig } from "../src/config.ts";
13+
16+
22+
28+
30+
35+ assert.deepEqual(credentialLabel(folder(), LOCAL, env), { kind: "pipeline run key", id: null });
38+
42+
48+ installKey(root, JSON.stringify({ key: "abso_sk_folderkeyabcdefghijklmnopqrstu", id: "k_ab12cd34" }));
54+
62+
69+ (err: Error) => /doesn't hold an abso key/.test(err.message) && !err.message.includes("secret-looking-text"),
72+
73+test("a run key's refusal reaches the job as the server wrote it, and without the key", async () => {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 client/test/run-key.test.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=client%2Ftest%2Frun-key.test.ts&format=json