Skip to content

ci: gate call-check-tflite-files behind approval-gate#3538

Open
s2ongmo wants to merge 1 commit intotensorflow:mainfrom
s2ongmo:fix/gate-call-check-tflite-files
Open

ci: gate call-check-tflite-files behind approval-gate#3538
s2ongmo wants to merge 1 commit intotensorflow:mainfrom
s2ongmo:fix/gate-call-check-tflite-files

Conversation

@s2ongmo
Copy link
Copy Markdown

@s2ongmo s2ongmo commented Apr 28, 2026

BUG=N/A (CI consistency fix; no functional change)

The Feb 10 security hardening (PRs #3425, #3426, #3432) added needs: [gatekeeper, approval-gate] plus the matching if: guard to all six other test jobs in pr_test.ymlcall-core, call-windows, call-cortex-m, call-xtensa, call-hexagon, call-riscv.

The call-check-tflite-files job uses the same parent workflow trigger (pull_request_target) and the same checkout-by-head-sha pattern (via check_tflite_files.yml), but the gate dependency was not applied to it. This PR adds the same two lines for consistency:

needs: [gatekeeper, approval-gate]
if: needs.gatekeeper.outputs.scope != 'none'

Behavior:

  • Trusted maintainer PRs: approval-gate resolves to an empty environment and passes immediately, so the job runs as before.
  • Untrusted fork PRs: approval-gate uses the integration-test environment and waits for team approval, matching the other six jobs.
  • tests-passed aggregator (line 128) is unaffected — it already lists call-check-tflite-files in needs:, and skipped jobs do not produce a failure/cancelled result.

No other changes.

The Feb 10 hardening (PRs tensorflow#3425/tensorflow#3426/tensorflow#3432) added the gatekeeper +
approval-gate dependency to the six call-* test jobs. The
call-check-tflite-files job follows the same pull_request_target +
checkout(head.sha) + script-execution pattern but was not gated in
that change. Adding the same dependency keeps the seven jobs
consistent.
@s2ongmo s2ongmo requested a review from veblush as a code owner April 28, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant