From 8e8f1d8fe63ad5e4dd7f88491c054504a5922159 Mon Sep 17 00:00:00 2001 From: rory Date: Thu, 22 Oct 2026 15:26:58 -0700 Subject: [PATCH 1/2] ci: block compromised Java certificates Protect the selected JVM before dependency downloads and other Java network operations. Keep Gradle on the protected JDK so cached or automatically downloaded toolchains cannot bypass the blocklist. --- .github/workflows/build-android.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index ac571b8b3..c5de59d18 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -41,6 +41,20 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Block compromised Java certificates + uses: Expensify/GitHub-Actions/block-compromised-java-certificates@d8dfc3ddd4d8626206653c6168ca8d094547749a + + - name: Restrict Gradle to the protected JDK + run: | + # Prevent cached or downloaded toolchains from bypassing the certificate blocklist. + mkdir -p "$HOME/.gradle" + cat >> "$HOME/.gradle/gradle.properties" < Date: Thu, 22 Oct 2026 16:29:26 -0700 Subject: [PATCH 2/2] ci: reuse shared Gradle JDK restrictions Adopt the merged GitHub-Actions Gradle opt-in instead of duplicating its toolchain restrictions in each workflow. Keep remediation after setup/cache restoration and before Java network use. --- .github/workflows/build-android.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index c5de59d18..6d0608037 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -42,18 +42,9 @@ jobs: java-version: 17 - name: Block compromised Java certificates - uses: Expensify/GitHub-Actions/block-compromised-java-certificates@d8dfc3ddd4d8626206653c6168ca8d094547749a - - - name: Restrict Gradle to the protected JDK - run: | - # Prevent cached or downloaded toolchains from bypassing the certificate blocklist. - mkdir -p "$HOME/.gradle" - cat >> "$HOME/.gradle/gradle.properties" <