diff --git a/.github/workflows/beta_version_analyze.yml b/.github/workflows/beta_version_analyze.yml index a2b51dec71..2159397bd5 100644 --- a/.github/workflows/beta_version_analyze.yml +++ b/.github/workflows/beta_version_analyze.yml @@ -13,13 +13,19 @@ jobs: # Does a sanity check on packages for the next beta version so we are not surprised by any breaking changes. analyze_beta_versions: timeout-minutes: 15 - 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/check_db_entities.yml b/.github/workflows/check_db_entities.yml index 327a580d68..78190f2eb6 100644 --- a/.github/workflows/check_db_entities.yml +++ b/.github/workflows/check_db_entities.yml @@ -42,13 +42,19 @@ jobs: check_entity_modifications: needs: gate if: needs.gate.outputs.should_run == 'true' - 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: 📥 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: 🔎 Check DB Entity Changes id: check_entities diff --git a/.github/workflows/e2e_test_cron.yml b/.github/workflows/e2e_test_cron.yml index e13e0049be..fb16d4d7ee 100644 --- a/.github/workflows/e2e_test_cron.yml +++ b/.github/workflows/e2e_test_cron.yml @@ -27,11 +27,19 @@ jobs: # Saves the AVD with a quick-boot snapshot for the e2e_test.yml batches. Here, because a cache # saved by a pull request is visible to that pull request alone, and one saved on master to all. android_avd: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v7 + # 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 + 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 }} - uses: ./.github/actions/enable-kvm diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index 3ef5eea1f6..3acec299ee 100644 --- a/.github/workflows/legacy_version_analyze.yml +++ b/.github/workflows/legacy_version_analyze.yml @@ -58,13 +58,19 @@ jobs: needs: gate if: needs.gate.outputs.should_run == 'true' timeout-minutes: 15 - 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 eac46adfad..7cb10044a3 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -18,11 +18,18 @@ permissions: jobs: stream_chat: - 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: 100 stream_chat_persistence: - 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: 100 stream_chat_flutter_core: - 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: 100 stream_chat_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: @@ -66,11 +88,16 @@ jobs: min_score: 100 stream_chat_localizations: - 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 e01396d852..b27f9ffde8 100644 --- a/.github/workflows/sdk_size.yml +++ b/.github/workflows/sdk_size.yml @@ -31,11 +31,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 }} # Android lint needs Java 21 or newer; the runner image defaults to 17. - name: Set up Java diff --git a/.github/workflows/stream_flutter_workflow.yml b/.github/workflows/stream_flutter_workflow.yml index 7cd9ac4c6e..2521df55ce 100644 --- a/.github/workflows/stream_flutter_workflow.yml +++ b/.github/workflows/stream_flutter_workflow.yml @@ -61,14 +61,20 @@ jobs: analyze: needs: gate if: needs.gate.outputs.should_run == 'true' - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 15 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 @@ -89,14 +95,18 @@ jobs: format: needs: gate if: needs.gate.outputs.should_run == 'true' - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 15 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 @@ -118,16 +128,20 @@ jobs: select-packages: needs: gate if: needs.gate.outputs.should_run == 'true' - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 10 outputs: packages: ${{ steps.select.outputs.packages }} 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 @@ -182,8 +196,7 @@ jobs: name: test (${{ matrix.package }}) needs: select-packages if: needs.select-packages.outputs.packages != '[]' - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 30 permissions: contents: read @@ -195,7 +208,13 @@ jobs: include: ${{ fromJSON(needs.select-packages.outputs.packages) }} 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: 🐦 Install Flutter uses: ./.github/actions/setup-flutter @@ -249,8 +268,7 @@ jobs: name: build (${{ matrix.platform }}) needs: gate if: needs.gate.outputs.should_run == 'true' && github.event_name == 'pull_request' - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest timeout-minutes: 30 strategy: fail-fast: false @@ -265,9 +283,14 @@ jobs: # build-command: bundle exec fastlane build_ipa no_codesign:true 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