fix: keep fork commit reviews API-only
This commit is contained in:
1 parent
d36668c5c7
commit
57b2c22a00
4 files changed
+5
-5
No files matched your search
@@ -2,11 +2,11 @@ import assert from "node:assert/strict";
|
||||
import fs from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
|
||||
test("conflict repair checks out fork heads without persisting GitHub credentials", async () => {
|
||||
test("pull_request_target checks out only same-repository heads without persisting credentials", async () => {
|
||||
const workflow = await fs.readFile(".github/workflows/review-reusable.yml", "utf8");
|
||||
const caller = await fs.readFile(".github/workflows/review.yml", "utf8");
|
||||
assert.match(workflow, /inputs\.auto_resolve_conflicts == 'true'/);
|
||||
assert.doesNotMatch(workflow, /pull_head_repository == format\('\{0\}\/\{1\}'/);
|
||||
assert.match(workflow, /pull_head_repository == format\('\{0\}\/\{1\}'/);
|
||||
assert.match(workflow, /fetch-depth:\s*0/);
|
||||
assert.doesNotMatch(workflow, /allow-unsafe-pr-checkout:\s*true/);
|
||||
assert.match(workflow, /GHBOT_GOOSE_BINARY:\s*\$\{\{ runner\.temp \}\}\/goose\/bin\/goose/);
|
||||
|
||||
Reference in new issue
Block a user