From 364b1948b4d1116915e7e8f2335ea1c310bd234c Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Wed, 2 Oct 2024 01:50:12 -0700 Subject: [PATCH] Limit branches for pull request target workflow (#42635) (cherry picked from commit e3fdb7e729781fccf02d9ab257d4382226c5b6c8) --- .github/workflows/build-images.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 4d90da4fe5138..8f7dd86912c49 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -21,6 +21,8 @@ run-name: > Build images for ${{ github.event.pull_request.title }} ${{ github.event.pull_request._links.html.href }} on: # yamllint disable-line rule:truthy pull_request_target: + branches: + - main permissions: # all other permissions are set to none contents: read