diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index d0258c623..2b586af20 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 b864a3bb8..4d592dcff 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 bc5556221..26a3ed2cf 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 d7b396940..4dcbd486d 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