test(deploy): prove central workflow carries signed target
ChatGPT validation / quality (push) Failing after 0s

This commit is contained in:
2026-08-26 23:47:20 +02:00
parent 84ed89bccf
commit c5cf384f9a
+4 -2
View File
@@ -6,10 +6,11 @@ const workflowUrl = new URL('../examples/gitea-actions/forgeflow-approved-deploy
const deployUrl = new URL('../examples/server/forgeflow-deploy', import.meta.url);
test('approved workflow transports immutable evidence only to the root-owned deploy wrapper', async () => {
test('central approved workflow transports signed target evidence only to the root-owned deploy wrapper', async () => {
const workflow = await readFile(workflowUrl, 'utf8');
for (const input of [
'repository',
'environment',
'commit_sha',
'request_id',
@@ -20,7 +21,8 @@ test('approved workflow transports immutable evidence only to the root-owned dep
]) {
assert.match(workflow, new RegExp(`\\b${input}:`));
}
assert.match(workflow, /\$\{\{ gitea\.repository \}\}/);
assert.match(workflow, /\$\{\{ inputs\.repository \}\}/);
assert.doesNotMatch(workflow, /\$\{\{ gitea\.repository \}\}/);
assert.match(workflow, /FF_APPROVAL_ID.*FF_REQUEST_ID/s);
assert.match(workflow, /sudo \/usr\/local\/bin\/forgeflow-deploy/);
assert.doesNotMatch(workflow, /actions\/checkout/);