Skip to content

Commit 90bfb03

Browse files
committed
ci: use GitHub-hosted repo guard runner
1 parent 73fd443 commit 90bfb03

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/repo-guard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
3333
)
3434
)
35-
runs-on: [self-hosted, macOS, repo-guard-intranet]
35+
runs-on: ubuntu-latest
3636
steps:
3737
- uses: ceilf6/repo-guard@main
3838
with:

‎scripts/tests/workflow-rules.test.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ test('Claude Harness workflow has a single portable entrypoint', () => {
435435
test('repo guard remains advisory and training-camp workflows are absent', () => {
436436
const repoGuard = readFileSync('.github/workflows/repo-guard.yml', 'utf8');
437437

438+
assert.match(repoGuard, /runs-on:\s+ubuntu-latest/u);
439+
assert.doesNotMatch(repoGuard, /repo-guard-intranet/u);
438440
assert.doesNotMatch(repoGuard, /auto-merge|确认合并|认领|score:/u);
439441
assert.throws(() => readFileSync('.github/workflows/pr-auto-merge.yml', 'utf8'));
440442
assert.throws(() => readFileSync('.github/workflows/issue-claim.yml', 'utf8'));

0 commit comments

Comments
 (0)