@intentius/chant-lexicon-forgejo 0.100.0 → 0.102.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/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "e7d5c12e152072c5bb89f36d6b9f9dc97727773282e38a85a571b1dc6fe3ae60",
|
|
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": "a1a560429db736c187e0b34cf8dd9efc6ad771afefcbf6f802d160d3d5274257"
|
|
11
11
|
},
|
|
12
|
-
"composite": "
|
|
12
|
+
"composite": "adce755c4488f29ce200c6471b6de1fe70ebbae2544c4e477978f7e2c7e63d56"
|
|
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.
|
|
3
|
+
"version": "0.102.0",
|
|
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,14 +54,14 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"zod": "^4.3.6",
|
|
57
|
-
"@intentius/chant": "^0.
|
|
58
|
-
"@intentius/chant-lexicon-github": "^0.
|
|
57
|
+
"@intentius/chant": "^0.102.0",
|
|
58
|
+
"@intentius/chant-lexicon-github": "^0.102.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"generate": "tsx src/codegen/generate-cli.ts",
|
|
62
62
|
"bundle": "tsx src/codegen/package-cli.ts",
|
|
63
63
|
"docs": "tsx src/codegen/docs-cli.ts",
|
|
64
64
|
"prepack": "npm run generate && npm run bundle && npm run build",
|
|
65
|
-
"build": "
|
|
65
|
+
"build": "../../scripts/tsc7.sh -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && find dist -type f \\( -name \"*.js\" -o -name \"*.js.map\" \\) -delete"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -202,7 +202,7 @@ describe("generateForgejoOpPipeline: setup steps and additive permissions (#2242
|
|
|
202
202
|
const steps = doc.jobs!["app-apply"].steps;
|
|
203
203
|
// The checkout is rewritten to the Forgejo mirror; an action with no
|
|
204
204
|
// mapping in ../actions.ts passes through verbatim.
|
|
205
|
-
expect(steps[0].uses).toContain("actions/checkout@
|
|
205
|
+
expect(steps[0].uses).toContain("actions/checkout@v7");
|
|
206
206
|
expect(steps[1].uses).toBe("aws-actions/configure-aws-credentials@v6");
|
|
207
207
|
expect((steps[1] as { with?: Record<string, string> }).with).toEqual({
|
|
208
208
|
"role-to-assume": "${{ vars.AWS_ROLE_ARN }}",
|
|
@@ -320,7 +320,7 @@ describe("generateForgejoOpPipeline: a dropped deployment environment (#2257)",
|
|
|
320
320
|
" runs-on: docker",
|
|
321
321
|
" container: node:22-slim",
|
|
322
322
|
" steps:",
|
|
323
|
-
" - uses: https://code.forgejo.org/actions/checkout@
|
|
323
|
+
" - uses: https://code.forgejo.org/actions/checkout@v7",
|
|
324
324
|
" - run: chant run actions-audit",
|
|
325
325
|
" env:",
|
|
326
326
|
" GITHUB_TOKEN: '${{ github.token }}'",
|
|
@@ -110,7 +110,7 @@ describe("generateForgejoPipeline: dialect applied", () => {
|
|
|
110
110
|
expect(ref).toContain("code.forgejo.org/actions/");
|
|
111
111
|
}
|
|
112
112
|
// checkout is present and mirrored.
|
|
113
|
-
expect(all.some((r) => r === "https://code.forgejo.org/actions/checkout@
|
|
113
|
+
expect(all.some((r) => r === "https://code.forgejo.org/actions/checkout@v7")).toBe(true);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
@@ -80,7 +80,7 @@ describe("forgejo context tools", () => {
|
|
|
80
80
|
test("forgejo:references reports the rewritten + unmapped refs", async () => {
|
|
81
81
|
const refs = (await tool("forgejo:references").handler({ path: join(dir, "src") })) as Array<{ source: string }>;
|
|
82
82
|
const sources = refs.map((r) => r.source);
|
|
83
|
-
expect(sources).toContain("https://code.forgejo.org/actions/checkout@
|
|
83
|
+
expect(sources).toContain("https://code.forgejo.org/actions/checkout@v7");
|
|
84
84
|
expect(sources).toContain("some-org/custom-action@v1");
|
|
85
85
|
});
|
|
86
86
|
|
package/src/serializer.test.ts
CHANGED
|
@@ -88,15 +88,15 @@ describe("forgejoSerializer — uses: action resolution", () => {
|
|
|
88
88
|
const { primary } = asResult(
|
|
89
89
|
forgejoSerializer.serialize(withSteps(Checkout({}).step, SetupNode({ nodeVersion: "22" }).step)),
|
|
90
90
|
);
|
|
91
|
-
expect(primary).toContain(`uses: ${DEFAULT_ACTIONS_ROOT}/actions/checkout@
|
|
92
|
-
expect(primary).toContain(`uses: ${DEFAULT_ACTIONS_ROOT}/actions/setup-node@
|
|
91
|
+
expect(primary).toContain(`uses: ${DEFAULT_ACTIONS_ROOT}/actions/checkout@v7`);
|
|
92
|
+
expect(primary).toContain(`uses: ${DEFAULT_ACTIONS_ROOT}/actions/setup-node@v7`);
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
test("forgejo.actionsRoot override changes the rewritten base", () => {
|
|
96
96
|
const out = forgejoSerializer.serialize(withSteps(Checkout({}).step), undefined, {
|
|
97
97
|
config: { forgejo: { actionsRoot: "https://codeberg.org" } },
|
|
98
98
|
});
|
|
99
|
-
expect(asResult(out).primary).toContain("uses: https://codeberg.org/actions/checkout@
|
|
99
|
+
expect(asResult(out).primary).toContain("uses: https://codeberg.org/actions/checkout@v7");
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
test("an unmapped action ref is passed through (WFJ010 reports it post-synth)", () => {
|