Publish curated ForgeFlow source from 63022ccf9a37242d573297c8ce7f15db61acc34e
ForgeFlow quality gate / secret-scan (push) Successful in 4s
ForgeFlow signed release / release (push) Failing after 18m45s
ForgeFlow quality gate / quality (push) Canceled after 0s

This commit is contained in:
Public Source Publisher committed 2026-09-30 21:27:28 +00:00
1 parent bdfcc1585d
commit 04cbfccbdb
19 files changed
+233 -77

No files matched your search

+14
View File
@@ -48,6 +48,20 @@ test("load creates missing config and recovers malformed JSON", async (t) => {
assert.ok((await readdir(directory)).some((name) => name.includes(".corrupt-")));
});
test("legacy ForgeFlow update endpoint migrates to the signed public releases", async (t) => {
const { directory, store } = await storeFixture(t);
assert.equal(store.data.updates.repo, "ForgeFlow-Public");
await writeFile(store.filePath, JSON.stringify({
updates: { owner: "Jens", repo: "ForgeFlow", branch: "main", autoCheck: true },
}), "utf8");
await store.load();
assert.equal(store.data.updates.repo, "ForgeFlow-Public");
assert.equal(JSON.parse(await readFile(store.filePath, "utf8")).updates.repo, "ForgeFlow-Public");
assert.equal(store.migrate({ updates: { owner: "Team", repo: "ForgeFlow" } }).updates.repo, "ForgeFlow");
assert.equal(store.migrate({ updates: { owner: "Jens", repo: "CustomUpdates" } }).updates.repo, "CustomUpdates");
assert.equal(store.migrate({ updates: { owner: "Jens", repo: "ForgeFlow", branch: "custom" } }).updates.repo, "ForgeFlow");
});
test("server normalization rejects unsafe targets and preserves bounded scan configuration", async (t) => {
const { store } = await storeFixture(t);
assert.throws(() => store.normalizeServer({ host: "bad host", username: "root" }), /hostname/);