The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed .github/workflows/ci-fast.yml,scripts/__tests__/private-runner-contract.test.mj
Steven Enamakel04c820ab48f4
diff --git a/.github/workflows/ci-fast.yml b/.github/workflows/ci-fast.ymlindex b5957ab250..ed8e8416f7 100644--- a/.github/workflows/ci-fast.yml+++ b/.github/workflows/ci-fast.yml@@ -68,7 +68,7 @@ jobs:[ "${login}" = "${AUTHOR}" ] && { [ "${ASSOCIATION}" = "OWNER" ] || [ "${ASSOCIATION}" = "MEMBER" ]; }}member=false- if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then+ if [ "${GITHUB_EVENT_NAME:-}" = "workflow_dispatch" ]; then# No PR author: the dispatcher, who already needs write access,# must be an org member. Without the membership token that cannot# be checked, so a dispatch then stays off EX63.diff --git a/scripts/__tests__/private-runner-contract.test.mjs b/scripts/__tests__/private-runner-contract.test.mjsindex 4ece313a37..4a86da3483 100644--- a/scripts/__tests__/private-runner-contract.test.mjs+++ b/scripts/__tests__/private-runner-contract.test.mjs@@ -129,13 +129,18 @@ test("membership gate routes mixed identities, outsiders and bots away from EX63'#!/usr/bin/env bash\nurl="${!#}"\ncase "$url" in */members/alice|*/members/bob) echo 204;; *) echo 404;; esac\n',{ mode: 0o755 },);- for (const [author, actor, association, token, expected] of [+ for (const [author, actor, association, token, expected, event] of [["alice", "bob", "MEMBER", "fixture", true],["alice", "outsider", "MEMBER", "fixture", false],["outsider", "alice", "NONE", "fixture", false],["dependabot[bot]", "dependabot[bot]", "NONE", "fixture", false],["alice", "alice", "MEMBER", "", true],["alice", "bob", "MEMBER", "", false],+ // A manual dispatch has no PR author: only the dispatcher is checked,+ // and only when the membership token can check it.+ ["", "alice", "", "fixture", true, "workflow_dispatch"],+ ["", "outsider", "", "fixture", false, "workflow_dispatch"],+ ["", "alice", "", "", false, "workflow_dispatch"],]) {const output = join(dir, "output");writeFileSync(output, "");@@ -150,6 +155,7 @@ test("membership gate routes mixed identities, outsiders and bots away from EX63ASSOCIATION: association,MEMBERSHIP_TOKEN: token,GITHUB_OUTPUT: output,+ GITHUB_EVENT_NAME: event ?? "pull_request_target",},});assert.equal(result.status, 0, result.stderr);