From 165dcd97c00280b5002cef4237c5014dda46845d Mon Sep 17 00:00:00 2001 From: markus-moser Date: Fri, 3 May 2024 17:01:48 +0200 Subject: [PATCH] Make PHP CS fixer compatible with works (#234) --- .github/workflows/php-cs-fixer.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yaml b/.github/workflows/php-cs-fixer.yaml index fc1ea8e0a..75edebc63 100644 --- a/.github/workflows/php-cs-fixer.yaml +++ b/.github/workflows/php-cs-fixer.yaml @@ -1,7 +1,7 @@ name: "PHP-CS-Fixer" on: - pull_request: + pull_request_target: branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" @@ -24,7 +24,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga:latest