diff --git a/.github/workflows/legacy_version_analyze.yml b/.github/workflows/legacy_version_analyze.yml index 86ccf419..621f1fce 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@v3 - 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: subosito/flutter-action@v2 diff --git a/.github/workflows/pana.yml b/.github/workflows/pana.yml index b042e5ea..df9e8a2c 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -18,11 +18,18 @@ permissions: jobs: stream_core: - 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@v4 + 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 10 points for no example, 10 points for no license, 10 points for static analysis issues, and 10 points for outdated dependencies (cross_file 0.4.0 requires Flutter). stream_core_flutter: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v4 + 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: 110 # Missing 10 points for no license, 10 points for no example, 20 points for static analysis issues (including the path dependency on stream_core that the pana action sets up), and 10 points for outdated dependencies (shimmer 4.0.0). stream_thumbnail: - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest steps: - name: 📚 Git Checkout - uses: actions/checkout@v4 + 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/stream_core_flutter_workflow.yml b/.github/workflows/stream_core_flutter_workflow.yml index ff64a9f0..da647163 100644 --- a/.github/workflows/stream_core_flutter_workflow.yml +++ b/.github/workflows/stream_core_flutter_workflow.yml @@ -26,15 +26,21 @@ permissions: jobs: analyze: timeout-minutes: 15 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest env: IS_CI: 'true' 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@v6 - 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: subosito/flutter-action@v2 @@ -66,8 +72,7 @@ jobs: test: needs: analyze timeout-minutes: 15 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest permissions: contents: read pull-requests: read @@ -77,9 +82,14 @@ jobs: IS_CI: 'true' steps: - name: Git Checkout - uses: actions/checkout@v6 - 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: subosito/flutter-action@v2 diff --git a/.github/workflows/stream_thumbnail_native_builds.yml b/.github/workflows/stream_thumbnail_native_builds.yml index 7b9bfdfe..95591082 100644 --- a/.github/workflows/stream_thumbnail_native_builds.yml +++ b/.github/workflows/stream_thumbnail_native_builds.yml @@ -33,14 +33,22 @@ permissions: jobs: android: timeout-minutes: 20 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest defaults: run: working-directory: packages/stream_thumbnail/example 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@v6 + working-directory: ${{ github.workspace }} + 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: Bootstrap Workspace uses: ./.github/actions/bootstrap @@ -106,14 +114,20 @@ jobs: linux: timeout-minutes: 20 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest defaults: run: working-directory: packages/stream_thumbnail/example steps: - name: Git Checkout - uses: actions/checkout@v6 + working-directory: ${{ github.workspace }} + 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 Linux Build Dependencies run: | @@ -130,14 +144,20 @@ jobs: web: timeout-minutes: 20 - runs-on: - group: github-public-amd64 + runs-on: ubuntu-latest defaults: run: working-directory: packages/stream_thumbnail/example steps: - name: Git Checkout - uses: actions/checkout@v6 + working-directory: ${{ github.workspace }} + 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: Bootstrap Workspace uses: ./.github/actions/bootstrap