From 9b373c3d122fdddaf2da2d3f7ba63c5e24dfa804 Mon Sep 17 00:00:00 2001 From: Binoy Patel Date: Tue, 15 Oct 2024 11:20:17 -0400 Subject: [PATCH] fix(ci): use pull_request_target for PR title validation --- .../workflows/{pr-validate.yml => validate-pr-title.yml} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{pr-validate.yml => validate-pr-title.yml} (65%) diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/validate-pr-title.yml similarity index 65% rename from .github/workflows/pr-validate.yml rename to .github/workflows/validate-pr-title.yml index 073726a71b7..855f3094139 100644 --- a/.github/workflows/pr-validate.yml +++ b/.github/workflows/validate-pr-title.yml @@ -1,7 +1,12 @@ -name: "Validate PR" +name: "Validate PR title" on: - pull_request: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened permissions: pull-requests: read