@intentius/chant-lexicon-forgejo 0.124.44 → 0.124.45
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/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "c1a68237e53c0382fc13d60e8e3d70af752df98f9bb686edf451cf9a9fc07483",
|
|
5
5
|
"meta.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
|
|
6
6
|
"types/index.d.ts": "66204549b2a864ab5489e3f02c1878e73ab4b3c9d938cfb480b66f71543a43de",
|
|
7
7
|
"rules/delegate-to-github.ts": "1060cda40f4b73d6cca3ba3fa13b80b4886147d4034c88584c2d80c5510dbe5e",
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"rules/wfj011.ts": "fcb8bf6685d744af20ad804ce929488257995c74b9a3353b2eacae3768d1c83e",
|
|
10
10
|
"skills/chant-forgejo.md": "f28d7fb69fb1cfd992496ef41fda0ea5ccd54a29b84ea1c501a44f6a3992c4d5"
|
|
11
11
|
},
|
|
12
|
-
"composite": "
|
|
12
|
+
"composite": "5c3c74f908805d79a782b469e02b1c59fdf0dae91105a4df9e6626dc704a9f17"
|
|
13
13
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-forgejo",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.45",
|
|
4
4
|
"description": "Forgejo / Codeberg / Gitea Actions lexicon for chant — a thin GitHub Actions dialect",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"zod": "^4.3.6",
|
|
57
|
-
"@intentius/chant": "^0.124.
|
|
58
|
-
"@intentius/chant-lexicon-github": "^0.124.
|
|
57
|
+
"@intentius/chant": "^0.124.45",
|
|
58
|
+
"@intentius/chant-lexicon-github": "^0.124.45"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"generate": "tsx src/codegen/generate-cli.ts",
|
|
@@ -103,3 +103,20 @@ describe("a runner per wave and job groups per wave (#3914)", () => {
|
|
|
103
103
|
expect(() => generateForgejoOpWavesPipeline({ ...grouped, waves: [{ ...grouped.waves[0]!, runner: { group: "x" } }] }, { specFile: "waves.json" })).toThrow(/wave "dev" runner is the runner group/);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
+
|
|
107
|
+
describe("an Op wave's jobs by cloud identity (#4332)", () => {
|
|
108
|
+
test("the dialect keeps id-token: write, and each job trades before its checkout", async () => {
|
|
109
|
+
const { parseYAML } = await import("@intentius/chant/yaml");
|
|
110
|
+
const { cloudIdentityWave, TRADE_SPEC_ENV } = await import("@intentius/chant/ci-identity");
|
|
111
|
+
const decl = { aws: { rules: [{ targets: ["a/**"], plan: "a-plan", apply: "a-apply" }, { plan: "own-plan", apply: "own-apply" }] } };
|
|
112
|
+
const roots = ["a/x", "b/y"];
|
|
113
|
+
const grouped: OpWavesSpec = { ...spec, waves: [{ name: "prod", runs: roots.map((target) => ({ target })), ...cloudIdentityWave(decl, "prod", undefined, roots) }] };
|
|
114
|
+
const { jobs } = parseYAML(generateForgejoOpWavesPipeline(grouped, { specFile: "waves.json" }).files[0]!.yaml) as { jobs: Record<string, { permissions?: Record<string, string>; steps: Array<{ uses?: string; env?: Record<string, string> }> }> };
|
|
115
|
+
expect(Object.keys(jobs)).toEqual(["wave-1-prod-decide", "wave-1-prod-a", "wave-1-prod-default"]);
|
|
116
|
+
for (const job of Object.values(jobs)) {
|
|
117
|
+
expect(job.permissions).toEqual({ "id-token": "write" });
|
|
118
|
+
expect(job.steps[0]!.env![TRADE_SPEC_ENV]).toBeDefined();
|
|
119
|
+
expect(job.steps[1]!.uses).toContain("checkout");
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|