Skip to content

Commit 7f42e57

Browse files
committed
fix: add approval gate to call-check-tflite-files job
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
1 parent 9f5ac25 commit 7f42e57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pr_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
run: echo "CI Authorized."
6565

6666
call-check-tflite-files:
67+
needs: [gatekeeper, approval-gate]
68+
if: needs.gatekeeper.outputs.scope != 'none'
6769
uses: ./.github/workflows/check_tflite_files.yml
6870
with:
6971
trigger-sha: ${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)