Skip to content

fix: add approval gate to call-check-tflite-files job#3550

Open
q1uf3ng wants to merge 1 commit into
tensorflow:mainfrom
q1uf3ng:fix/approval-gate-bypass
Open

fix: add approval gate to call-check-tflite-files job#3550
q1uf3ng wants to merge 1 commit into
tensorflow:mainfrom
q1uf3ng:fix/approval-gate-bypass

Conversation

@q1uf3ng
Copy link
Copy Markdown

@q1uf3ng q1uf3ng commented May 8, 2026

Summary

call-check-tflite-files in pr_test.yml is missing needs: [gatekeeper, approval-gate]. All other jobs (call-core, call-windows, call-cortex-m, etc.) have this dependency, but call-check-tflite-files runs immediately on any fork PR — checking out and executing fork-controlled check_tflite_files.sh without waiting for approval.

Fix

Add needs: [gatekeeper, approval-gate] and the if: needs.gatekeeper.outputs.scope != 'none' condition, matching every other job in the workflow.

BUG=n/a

@q1uf3ng q1uf3ng requested a review from veblush as a code owner May 8, 2026 05:31
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@q1uf3ng q1uf3ng force-pushed the fix/approval-gate-bypass branch from 842c33f to ca6da64 Compare May 8, 2026 05:53
@q1uf3ng
Copy link
Copy Markdown
Author

q1uf3ng commented May 8, 2026

I have already signed the Google CLA. Please recheck.

The call-check-tflite-files job in pr_test.yml is missing the
needs: [gatekeeper, approval-gate] dependency that all other jobs
have. This allows fork PRs to execute arbitrary code via the checked-out
shell script without waiting for approval, bypassing the security gate.

BUG=n/a
@q1uf3ng q1uf3ng force-pushed the fix/approval-gate-bypass branch from 59dd4f1 to 7f42e57 Compare May 8, 2026 05:58
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