From ca0b8b1308e038c2c1963e8b91139379266e8703 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Wed, 1 Jul 2026 13:59:22 -0700 Subject: [PATCH] Added allow-unsafe-pr-checkout: true (#3615) --- .github/workflows/suite_cortex_m.yml | 6 ++++++ .github/workflows/suite_hexagon.yml | 1 + .github/workflows/suite_riscv.yml | 1 + .github/workflows/suite_xtensa.yml | 8 ++++++++ .github/workflows/test_bazel.yml | 1 + .github/workflows/test_makefile.yml | 1 + .github/workflows/test_misc.yml | 3 +++ .github/workflows/test_windows.yml | 2 ++ 8 files changed, 23 insertions(+) diff --git a/.github/workflows/suite_cortex_m.yml b/.github/workflows/suite_cortex_m.yml index 74d97efb..67053c32 100644 --- a/.github/workflows/suite_cortex_m.yml +++ b/.github/workflows/suite_cortex_m.yml @@ -41,6 +41,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Install dependencies run: | pip3 install Pillow @@ -63,6 +64,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Test uses: docker://ghcr.io/tflm-bot/tflm-ci:0.6.7 with: @@ -84,6 +86,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Install dependencies run: | pip3 install Pillow @@ -104,6 +107,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Install dependencies run: | pip3 install Pillow @@ -123,6 +127,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - uses: actions/setup-python@v6 with: python-version: '3.10' @@ -152,6 +157,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - uses: actions/setup-python@v6 with: python-version: '3.10' diff --git a/.github/workflows/suite_hexagon.yml b/.github/workflows/suite_hexagon.yml index c5c5394f..510bbe9c 100644 --- a/.github/workflows/suite_hexagon.yml +++ b/.github/workflows/suite_hexagon.yml @@ -19,6 +19,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hexagon Build Test env: diff --git a/.github/workflows/suite_riscv.yml b/.github/workflows/suite_riscv.yml index 75d57efb..b966f5c9 100644 --- a/.github/workflows/suite_riscv.yml +++ b/.github/workflows/suite_riscv.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Test uses: docker://ghcr.io/tflm-bot/tflm-ci:0.6.7 with: diff --git a/.github/workflows/suite_xtensa.yml b/.github/workflows/suite_xtensa.yml index 15e5f774..47881cef 100644 --- a/.github/workflows/suite_xtensa.yml +++ b/.github/workflows/suite_xtensa.yml @@ -27,6 +27,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Vision P6 Build env: @@ -46,6 +47,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hifi5 Unit Tests env: @@ -65,6 +67,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hifi5 Unit Tests with Compression env: @@ -84,6 +87,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hifi3z Unit Tests env: @@ -103,6 +107,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hifi3z Unit Tests with Compression env: @@ -124,6 +129,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Fusion F1 Unit Tests env: @@ -143,6 +149,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Vision P6 Unit Tests env: @@ -162,6 +169,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - run: rm -rf .git - name: Hifimini Unit Tests env: diff --git a/.github/workflows/test_bazel.yml b/.github/workflows/test_bazel.yml index ed6419ae..cb73f267 100644 --- a/.github/workflows/test_bazel.yml +++ b/.github/workflows/test_bazel.yml @@ -34,6 +34,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha || github.ref }} + allow-unsafe-pr-checkout: true - uses: bazel-contrib/setup-bazel@0.18.0 with: bazelisk-cache: true diff --git a/.github/workflows/test_makefile.yml b/.github/workflows/test_makefile.yml index 0f6495fa..7624bbfd 100644 --- a/.github/workflows/test_makefile.yml +++ b/.github/workflows/test_makefile.yml @@ -32,6 +32,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha || github.ref }} + allow-unsafe-pr-checkout: true - name: Test run: | tensorflow/lite/micro/tools/ci_build/test_makefile.sh diff --git a/.github/workflows/test_misc.yml b/.github/workflows/test_misc.yml index d5b63d9e..d9436a6b 100644 --- a/.github/workflows/test_misc.yml +++ b/.github/workflows/test_misc.yml @@ -19,6 +19,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - name: Check run: tensorflow/lite/micro/tools/ci_build/test_code_style.sh @@ -32,6 +33,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha || github.ref }} + allow-unsafe-pr-checkout: true - uses: bazel-contrib/setup-bazel@0.18.0 with: bazelisk-cache: true @@ -52,6 +54,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - uses: bazel-contrib/setup-bazel@0.18.0 with: bazelisk-cache: true diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index e49b4d70..1d1bc89e 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - uses: actions/setup-python@v6 with: python-version: '3.13' @@ -54,6 +55,7 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.trigger-sha }} + allow-unsafe-pr-checkout: true - uses: msys2/setup-msys2@v2 with: msystem: MINGW64