Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: let the release workflow's CI call read commit statuses so a release publishes instead of failing at startup

[._.]/ Adam Eivy41921a2ec5a0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d3ad0c2be1..05e55c9250 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -62,6 +62,7 @@ jobs:
permissions:
contents: read
actions: write
+ statuses: read
uses: ./.github/workflows/ci.yml
with:
full: true
diff --git a/scripts/ci-fail-fast.test.js b/scripts/ci-fail-fast.test.js
index 96393a99cc..cd688cfe34 100644
--- a/scripts/ci-fail-fast.test.js
+++ b/scripts/ci-fail-fast.test.js
@@ -109,4 +109,18 @@ describe('ci.yml fail-fast cancellation contract', () => {
expect(fullCi).toBeTruthy();
expect(fullCi).toMatch(/\n permissions:\n contents: read\n actions: write\n/);
});
+
+ it('grants the release caller every scope a called ci.yml job declares', () => {
+ // A called workflow cannot hold a scope its calling job lacks; a missing
+ // grant is a startup_failure that publishes nothing (v2.97.0, statuses: read).
+ const releaseWorkflow = readFileSync(join(REPO_ROOT, '.github/workflows/release.yml'), 'utf8');
+ const fullCi = workflowJobs(releaseWorkflow)['full-ci'];
+ const granted = new Set([...fullCi.matchAll(/^ {6}(\w+): (?:read|write)$/gm)].map((m) => m[1]));
+ for (const [id, body] of Object.entries(jobs)) {
+ const block = body.match(/\n permissions:\n((?: \w+: (?:read|write)\n)+)/);
+ for (const m of (block?.[1] ?? '').matchAll(/ {6}(\w+): /g)) {
+ expect(granted.has(m[1]), `${id} needs ${m[1]}`).toBe(true);
+ }
+ }
+ });
});