From 98dc2fd00f1ac7e73dab7755baf43df45d0f2985 Mon Sep 17 00:00:00 2001 From: Sanchith Hegde Date: Thu, 18 Jan 2024 01:40:02 +0530 Subject: [PATCH] ci(pr-convention-checks): trigger checks on `pull_request` instead of `pull_request_target` event for testing --- .github/workflows/pr-convention-checks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-convention-checks.yml b/.github/workflows/pr-convention-checks.yml index 37732e7c548c..5ac8999569eb 100644 --- a/.github/workflows/pr-convention-checks.yml +++ b/.github/workflows/pr-convention-checks.yml @@ -7,7 +7,7 @@ on: # pull request whenever this trigger is used. # Since we do not have a checkout step in this workflow, this is an # acceptable use of this trigger. - pull_request_target: + pull_request: types: - opened - edited @@ -42,7 +42,7 @@ jobs: crate: cocogitto - name: Verify PR title follows conventional commit standards - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} shell: bash env: TITLE: ${{ github.event.pull_request.title }} @@ -65,7 +65,7 @@ jobs: - name: Generate GitHub app token id: generate_app_token - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} uses: actions/create-github-app-token@v1 with: app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }} @@ -73,7 +73,7 @@ jobs: owner: ${{ github.event.repository.owner.login }} - name: Verify PR contains one or more linked issues - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} shell: bash env: GH_TOKEN: ${{ steps.generate_app_token.outputs.token }}