Replace pull_request_target with pull_request

This commit is contained in:
Andrew Rabert
2026-02-20 19:10:50 -05:00
parent 82a958c59d
commit 2a8497c80e
+5 -5
View File
@@ -10,12 +10,12 @@ on:
- master
paths-ignore:
- "**/*.md"
pull_request_target:
pull_request:
jobs:
compose-comment:
name: Compose PR comment
if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' }}
if: ${{ always() && !cancelled() && github.event_name == 'pull_request' }}
uses: ./.github/workflows/job_messages.yml
with:
commit: ${{ github.event.pull_request.head.sha }}
@@ -24,7 +24,7 @@ jobs:
push-comment:
name: Push comment to PR 🖥️
if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' && needs.compose-comment.result == 'success' }}
if: ${{ always() && !cancelled() && github.event_name == 'pull_request' && needs.compose-comment.result == 'success' }}
runs-on: ubuntu-latest
needs:
- compose-comment
@@ -39,7 +39,7 @@ jobs:
project:
name: Project board 📊
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
@@ -57,7 +57,7 @@ jobs:
steps:
- name: Label PR depending on modified files
uses: actions/labeler@v5.0.0
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request' }}
continue-on-error: true
with:
repo-token: "${{ secrets.JF_BOT_TOKEN }}"