Skip to content

Commit 2e6b68a

Browse files
author
Peter Steinberger
committed
fix: pin checkout in privileged automatic bug backfill
1 parent 77f0f80 commit 2e6b68a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/repair-issue-implementation-backfill.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 15
2121
steps:
22-
- uses: actions/checkout@v7
22+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2323
with:
2424
ref: main
2525
filter: blob:none

‎test/sweep-workflow.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ test("automatic bug backfill runs independently of queue-fed scheduled sweeps",
6565
assert.ok(Object.hasOwn(workflow.on, "workflow_dispatch"));
6666
assert.deepEqual(workflow.permissions, { actions: "write", contents: "read" });
6767
assert.match(workflow.jobs.backfill!.if, /CLAWSWEEPER_AUTO_IMPLEMENT_ISSUES == '1'/);
68+
const checkout = workflow.jobs.backfill!.steps.find((step) =>
69+
step.uses?.startsWith("actions/checkout@"),
70+
);
71+
assert.equal(checkout?.uses, "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0");
72+
assert.equal(checkout?.with?.["persist-credentials"], false);
6873
const state = workflow.jobs.backfill!.steps.find((step) => step.uses?.endsWith("/setup-state"));
6974
assert.equal(state?.with?.["coordinator-class"], "cluster_intake");
7075
assert.equal(state?.with?.["records-repo-slugs"], "openclaw-openclaw");

0 commit comments

Comments
 (0)