Skip to content

chore(ci): use ubuntu-24.04 fallback runner for forks - #9544

Merged
ping-maxwell merged 2 commits into
better-auth:mainfrom
Vishesh-Verma-07:fix/fork-runner-compatibility
May 11, 2026
Merged

ping-maxwell merged 2 commits into
better-auth:mainfrom
Vishesh-Verma-07:fix/fork-runner-compatibility

Conversation

@Vishesh-Verma-07

@Vishesh-Verma-07 Vishesh-Verma-07 commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #9539

Workflows use starsling-ubuntu-24.04 which is a custom runner only
available in the better-auth/better-auth org. When contributors fork
the repo and push to their fork, CI jobs queue indefinitely waiting for
a runner that will never come — or worse, bill them if their org has
starsling configured.

Fix

Replace every runs-on: starsling-ubuntu-24.04 with a conditional
expression:

runs-on: ${{ github.repository == 'better-auth/better-auth' && 'starsling-ubuntu-24.04' || 'ubuntu-24.04' }}

In the official repo everything works as before. In any fork, jobs
automatically fall back to standard GitHub-hosted ubuntu-24.04 runners.

Files changed

  • .github/workflows/ci.yml
  • .github/workflows/e2e.yml
  • .github/workflows/preview.yml
  • .github/workflows/claude.yml

Summary by cubic

Use conditional runners in GitHub Actions to fall back to ubuntu-24.04 on forks, so CI runs instead of waiting for the private starsling-ubuntu-24.04 runner. This unblocks contributors and avoids unintended billing.

  • Bug Fixes
    • Replaced runs-on with runs-on: ${{ github.repository == 'better-auth/better-auth' && 'starsling-ubuntu-24.04' || 'ubuntu-24.04' }} in ci.yml, e2e.yml, preview.yml, and claude.yml.
    • No change for the main repo; forks use GitHub-hosted runners automatically.

Written for commit ab335bc. Summary will update on new commits.

Copilot AI review requested due to automatic review settings May 10, 2026 07:12
@Vishesh-Verma-07
Vishesh-Verma-07 requested a review from a team as a code owner May 10, 2026 07:12
@Vishesh-Verma-07
Vishesh-Verma-07 requested review from bytaesu and removed request for a team May 10, 2026 07:12
@vercel

vercel Bot commented May 10, 2026

Copy link
Copy Markdown

@Vishesh-Verma-07 is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@better-release better-release Bot added the devops CI/CD, GitHub Actions, build tooling, e2e tests, release automation label May 10, 2026
@pkg-pr-new

pkg-pr-new Bot commented May 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@better-auth/api-key

npm i https://pkg.pr.new/@better-auth/api-key@9544

better-auth

npm i https://pkg.pr.new/better-auth@9544

auth

npm i https://pkg.pr.new/auth@9544

@better-auth/core

npm i https://pkg.pr.new/@better-auth/core@9544

@better-auth/drizzle-adapter

npm i https://pkg.pr.new/@better-auth/drizzle-adapter@9544

@better-auth/electron

npm i https://pkg.pr.new/@better-auth/electron@9544

@better-auth/expo

npm i https://pkg.pr.new/@better-auth/expo@9544

@better-auth/i18n

npm i https://pkg.pr.new/@better-auth/i18n@9544

@better-auth/kysely-adapter

npm i https://pkg.pr.new/@better-auth/kysely-adapter@9544

@better-auth/memory-adapter

npm i https://pkg.pr.new/@better-auth/memory-adapter@9544

@better-auth/mongo-adapter

npm i https://pkg.pr.new/@better-auth/mongo-adapter@9544

@better-auth/oauth-provider

npm i https://pkg.pr.new/@better-auth/oauth-provider@9544

@better-auth/passkey

npm i https://pkg.pr.new/@better-auth/passkey@9544

@better-auth/prisma-adapter

npm i https://pkg.pr.new/@better-auth/prisma-adapter@9544

@better-auth/redis-storage

npm i https://pkg.pr.new/@better-auth/redis-storage@9544

@better-auth/scim

npm i https://pkg.pr.new/@better-auth/scim@9544

@better-auth/sso

npm i https://pkg.pr.new/@better-auth/sso@9544

@better-auth/stripe

npm i https://pkg.pr.new/@better-auth/stripe@9544

@better-auth/telemetry

npm i https://pkg.pr.new/@better-auth/telemetry@9544

@better-auth/test-utils

npm i https://pkg.pr.new/@better-auth/test-utils@9544

commit: ab335bc

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflows to avoid indefinite queueing on forks by conditionally selecting the custom starsling-ubuntu-24.04 runner only when running in better-auth/better-auth, and otherwise falling back to ubuntu-24.04.

Changes:

  • Replaced runs-on: starsling-ubuntu-24.04 with a repository-conditional runs-on expression across CI, E2E, preview, and Claude workflows.
  • Minor whitespace/format cleanup in workflow YAML where touched.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Conditional runs-on fallback for lint/typecheck/test jobs to support fork execution.
.github/workflows/e2e.yml Conditional runs-on fallback for smoke/integration/adapter-integration E2E jobs to support forks.
.github/workflows/preview.yml Conditional runs-on fallback so preview workflow runs on forks without custom runner.
.github/workflows/claude.yml Conditional runs-on fallback so the workflow doesn’t queue indefinitely on forks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ping-maxwell ping-maxwell changed the title fix(ci): use ubuntu-24.04 fallback runner for forks chore(ci): use ubuntu-24.04 fallback runner for forks May 11, 2026
@ping-maxwell
ping-maxwell enabled auto-merge May 11, 2026 11:02
@ping-maxwell
ping-maxwell added this pull request to the merge queue May 11, 2026
Merged via the queue into better-auth:main with commit c20796f May 11, 2026
35 checks passed
vineyardbovines pushed a commit to vineyardbovines/better-auth that referenced this pull request May 11, 2026
@better-release

Copy link
Copy Markdown
Contributor

This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.

@better-release better-release Bot added the locked Locked conversations after being closed for 7 days label May 19, 2026
@better-release better-release Bot locked as resolved and limited conversation to collaborators May 19, 2026
@Vishesh-Verma-07
Vishesh-Verma-07 deleted the fix/fork-runner-compatibility branch May 25, 2026 05:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

devops CI/CD, GitHub Actions, build tooling, e2e tests, release automation locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI doesn't run on forks

3 participants