From 35a34c7e2fd44407b650421372bd74780058e05e Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Fri, 20 Feb 2026 19:10:56 -0500 Subject: [PATCH] Replace pull_request_target with pull_request --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 527d1404..8325882a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ concurrency: cancel-in-progress: true on: - pull_request_target: + pull_request: branches: [master] push: branches: [master] @@ -65,7 +65,7 @@ jobs: steps: - name: Add comment uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0 - if: github.event_name == 'pull_request_target' + if: github.event_name == 'pull_request' with: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} message: | @@ -91,12 +91,12 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy build --project-name=jellyfin-org --branch=${{ - (github.event_name != 'pull_request_target' || github.event.pull_request.head.repo.full_name == github.repository) + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && (github.event.pull_request.head.ref || github.ref_name) || format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.event.pull_request.head.ref) }} --commit-hash=${{ github.event.pull_request.head.sha || github.sha }} - name: Update status comment (Success) - if: ${{ github.event_name == 'pull_request_target' && success() }} + if: ${{ github.event_name == 'pull_request' && success() }} uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0 with: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} @@ -112,7 +112,7 @@ jobs: comment_tag: CFPages-deployment mode: recreate - name: Update status comment (Failure) - if: ${{ github.event_name == 'pull_request_target' && failure() }} + if: ${{ github.event_name == 'pull_request' && failure() }} uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0 with: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}