From d5fac7abef767f155b2252b7453a46ef03ab101b Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 27 Nov 2026 10:39:03 +0100 Subject: [PATCH] ci(repo): run the test and analysis jobs on free standard runners Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015cLka1Rk3gS2SjhgrUW2MD --- .github/workflows/legacy_version_analyze.yml | 16 ++++-- .github/workflows/pana.yml | 57 ++++++++++++++----- .github/workflows/sdk_size.yml | 13 ++++- .../stream_video_flutter_workflow.yml | 30 ++++++---- 4 files changed, 83 insertions(+), 33 deletions(-) diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index d0258c623c..2b586af20e 100644 --- a/.github/workflows/legacy_version_analyze.yml +++ b/.github/workflows/legacy_version_analyze.yml @@ -38,13 +38,19 @@ jobs: analyze_legacy_version: timeout-minutes: 15 if: github.event.pull_request.draft == false - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: + # Anonymous checkout: the org IP allow list refuses only signed-in requests, and this job + # makes no other GitHub call, so it runs on a free standard runner. - name: "Git Checkout" - uses: actions/checkout@v7 - with: - fetch-depth: 0 + run: | + git init -q . + git remote add origin "https://github.com/$REPOSITORY" + git fetch -q origin '+refs/heads/*:refs/remotes/origin/*' '+refs/tags/*:refs/tags/*' "$SHA" + git checkout -q --detach "$SHA" + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: "Install Flutter" uses: ./.github/actions/setup-flutter diff --git a/.github/workflows/pana.yml b/.github/workflows/pana.yml index b864a3bb85..4d592dcff1 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -18,11 +18,18 @@ permissions: jobs: stream_video: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: + # Anonymous checkout: the org IP allow list refuses only signed-in requests, and this job + # makes no other GitHub call, so it runs on a free standard runner. - name: 📚 Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: 📊 Verify Pana Score uses: ./.github/actions/pana with: @@ -30,11 +37,16 @@ jobs: min_score: 120 # Missing official support for WASM stream_video_flutter: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: 📊 Verify Pana Score uses: ./.github/actions/pana with: @@ -42,11 +54,16 @@ jobs: min_score: 120 # Missing official support for WASM stream_video_push_notification: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: 📊 Verify Pana Score uses: ./.github/actions/pana with: @@ -54,11 +71,16 @@ jobs: min_score: 130 stream_video_screen_sharing: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: 📊 Verify Pana Score uses: ./.github/actions/pana with: @@ -66,11 +88,16 @@ jobs: min_score: 140 stream_video_noise_cancellation: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: 📊 Verify Pana Score uses: ./.github/actions/pana with: diff --git a/.github/workflows/sdk_size.yml b/.github/workflows/sdk_size.yml index bc5556221b..26a3ed2cf8 100644 --- a/.github/workflows/sdk_size.yml +++ b/.github/workflows/sdk_size.yml @@ -32,11 +32,18 @@ jobs: measure-android: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false timeout-minutes: 60 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: + # Anonymous checkout: the org IP allow list refuses only signed-in requests, and this job + # makes no other GitHub call, so it runs on a free standard runner. - name: Git Checkout - uses: actions/checkout@v7 + run: | + git init -q . + git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA" + git checkout -q FETCH_HEAD + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: Install Flutter uses: ./.github/actions/setup-flutter diff --git a/.github/workflows/stream_video_flutter_workflow.yml b/.github/workflows/stream_video_flutter_workflow.yml index d7b3969409..4dcbd486da 100644 --- a/.github/workflows/stream_video_flutter_workflow.yml +++ b/.github/workflows/stream_video_flutter_workflow.yml @@ -22,18 +22,24 @@ permissions: jobs: analyze: timeout-minutes: 15 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest permissions: contents: read pull-requests: read # Codecov authenticates the coverage upload with a GitHub OIDC token. id-token: write steps: + # Anonymous checkout: the org IP allow list refuses only signed-in requests, and this job + # makes no other GitHub call, so it runs on a free standard runner. - name: Git Checkout - uses: actions/checkout@v7 - with: - fetch-depth: 0 + run: | + git init -q . + git remote add origin "https://github.com/$REPOSITORY" + git fetch -q origin '+refs/heads/*:refs/remotes/origin/*' '+refs/tags/*:refs/tags/*' "$SHA" + git checkout -q --detach "$SHA" + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: Install Flutter uses: ./.github/actions/setup-flutter @@ -72,13 +78,17 @@ jobs: build: timeout-minutes: 30 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: Git Checkout - uses: actions/checkout@v7 - with: - fetch-depth: 0 + run: | + git init -q . + git remote add origin "https://github.com/$REPOSITORY" + git fetch -q origin '+refs/heads/*:refs/remotes/origin/*' '+refs/tags/*:refs/tags/*' "$SHA" + git checkout -q --detach "$SHA" + env: + REPOSITORY: ${{ github.repository }} + SHA: ${{ github.sha }} - name: Install Flutter uses: ./.github/actions/setup-flutter