diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml index 5223089ee8a93..3d0c23917bd40 100644 --- a/.github/workflows/pr-code-format.yml +++ b/.github/workflows/pr-code-format.yml @@ -1,5 +1,9 @@ name: "Check code formatting" -on: pull_request_target +on: + pull_request_target: + branches: + - main + permissions: pull-requests: write