diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index dc00cfb53eca..96168ae08717 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -4,6 +4,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-android cancel-in-progress: true +permissions: + contents: read + on: pull_request: paths-ignore: @@ -31,6 +34,8 @@ on: jobs: android: + permissions: + contents: read runs-on: ubuntu-latest timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 45 }} strategy: @@ -60,7 +65,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent @@ -89,7 +94,7 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm - name: Gradle cache - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@90ddb51e90a5fd9ba75f40cf85156b7b41bf76a3 - name: Free Disk Space (Ubuntu) uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 with: @@ -106,7 +111,7 @@ jobs: sudo chown "$USER:$USER" /mnt/avd df -h / /mnt - name: AVD cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true id: avd-cache with: @@ -160,6 +165,8 @@ jobs: ~/.android/adb* agp9-compatibility: + permissions: + contents: read runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -181,6 +188,6 @@ jobs: - name: 'Bootstrap tests package' run: melos bootstrap --scope tests - name: Gradle cache - uses: gradle/actions/setup-gradle@v4 + uses: gradle/actions/setup-gradle@0b6dd653ba04f4f93bf581ec31e66cbd7dcb644d - name: 'Build tests app with AGP 9' run: bash ./.github/workflows/scripts/agp9-compatibility.sh diff --git a/.github/workflows/e2e_tests_fdc.yaml b/.github/workflows/e2e_tests_fdc.yaml index ce9e4e570691..fc8f47738b73 100644 --- a/.github/workflows/e2e_tests_fdc.yaml +++ b/.github/workflows/e2e_tests_fdc.yaml @@ -55,7 +55,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # Must match the save path exactly @@ -68,7 +68,7 @@ jobs: cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - name: Setup PostgreSQL for Linux/macOS/Windows - uses: ikalnytskyi/action-setup-postgres@v8 + uses: ikalnytskyi/action-setup-postgres@c4dda34aae1c821e3a771b68b73b13af3198a7ee - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 with: run-bootstrap: false @@ -88,7 +88,7 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm - name: Gradle cache - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@90ddb51e90a5fd9ba75f40cf85156b7b41bf76a3 - name: Free Disk Space (Ubuntu) uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 with: @@ -103,7 +103,7 @@ jobs: sudo chown "$USER:$USER" /mnt/avd df -h / /mnt - name: AVD cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 id: avd-cache continue-on-error: true with: @@ -168,14 +168,14 @@ jobs: distribution: 'temurin' java-version: '21' - name: Setup PostgreSQL for Linux/macOS/Windows - uses: ikalnytskyi/action-setup-postgres@v8 + uses: ikalnytskyi/action-setup-postgres@c4dda34aae1c821e3a771b68b73b13af3198a7ee - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 name: Xcode Compile Cache with: key: xcode-cache-${{ runner.os }} save: "${{ github.ref == 'refs/heads/main' }}" max-size: 700M - - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true name: Pods Cache id: pods-cache @@ -190,7 +190,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # Must match the save path exactly @@ -286,7 +286,7 @@ jobs: distribution: 'temurin' java-version: '21' - name: Setup PostgreSQL for Linux/macOS/Windows - uses: ikalnytskyi/action-setup-postgres@v8 + uses: ikalnytskyi/action-setup-postgres@c4dda34aae1c821e3a771b68b73b13af3198a7ee - uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 with: channel: 'stable' @@ -305,7 +305,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # Must match the save path exactly @@ -361,7 +361,7 @@ jobs: distribution: 'temurin' java-version: '21' - name: Setup PostgreSQL for Linux/macOS/Windows - uses: ikalnytskyi/action-setup-postgres@v8 + uses: ikalnytskyi/action-setup-postgres@c4dda34aae1c821e3a771b68b73b13af3198a7ee - uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 with: channel: 'stable' @@ -380,7 +380,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # Must match the save path exactly diff --git a/.github/workflows/e2e_tests_pipeline.yaml b/.github/workflows/e2e_tests_pipeline.yaml index 22ffb4736201..0e1a5bca4aec 100644 --- a/.github/workflows/e2e_tests_pipeline.yaml +++ b/.github/workflows/e2e_tests_pipeline.yaml @@ -70,7 +70,7 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm - name: Gradle cache - uses: gradle/actions/setup-gradle@v6 + uses: gradle/actions/setup-gradle@90ddb51e90a5fd9ba75f40cf85156b7b41bf76a3 - name: Free Disk Space (Ubuntu) uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 with: @@ -85,7 +85,7 @@ jobs: sudo chown "$USER:$USER" /mnt/avd df -h / /mnt - name: AVD cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true id: avd-cache with: diff --git a/.github/workflows/ios.yaml b/.github/workflows/ios.yaml index 1a8d7841ff5c..c271e48c2d55 100644 --- a/.github/workflows/ios.yaml +++ b/.github/workflows/ios.yaml @@ -4,6 +4,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-ios cancel-in-progress: true +permissions: + contents: read + on: pull_request: paths-ignore: @@ -31,6 +34,8 @@ on: jobs: ios: + permissions: + contents: read runs-on: macos-15 timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 60 }} strategy: @@ -58,7 +63,7 @@ jobs: key: xcode-cache-${{ runner.os }} save: "${{ github.ref == 'refs/heads/main' }}" max-size: 700M - - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true name: Pods Cache id: pods-cache @@ -73,7 +78,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index b2817c514338..558cc36fdaec 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -4,6 +4,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-macos cancel-in-progress: true +permissions: + contents: read + on: pull_request: paths-ignore: @@ -31,6 +34,8 @@ on: jobs: macos: + permissions: + contents: read runs-on: macos-15 timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 45 }} strategy: @@ -58,7 +63,7 @@ jobs: max-size: 700M - name: Pods Cache continue-on-error: true - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 id: pods-cache with: # Must match the save path exactly @@ -71,7 +76,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml index 8a9b9cd8c5af..ac49df7a10d7 100644 --- a/.github/workflows/web.yaml +++ b/.github/workflows/web.yaml @@ -4,6 +4,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-web cancel-in-progress: true +permissions: + contents: read + on: pull_request: paths-ignore: @@ -31,6 +34,8 @@ on: jobs: web: + permissions: + contents: read runs-on: macos-latest timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 15 }} strategy: @@ -68,7 +73,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent @@ -108,6 +113,8 @@ jobs: path: ~/.cache/firebase/emulators web-app-check: + permissions: + contents: read runs-on: macos-latest timeout-minutes: 15 steps: @@ -138,7 +145,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent @@ -183,6 +190,8 @@ jobs: path: ~/.cache/firebase/emulators web-wasm: + permissions: + contents: read runs-on: macos-latest timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 15 }} strategy: @@ -220,7 +229,7 @@ jobs: echo "FIREBASE_TOOLS_VERSION=$(npm firebase --version)" >> $GITHUB_ENV - name: Firebase Emulator Cache id: firebase-emulator-cache - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 continue-on-error: true with: # The firebase emulators are pure javascript and java, OS-independent