From 5032f0203dd06a8be3deb2164e1e087551a93528 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 31 Oct 2024 22:18:00 +0300 Subject: [PATCH] Improve Rector CI (#72) --- .github/workflows/rector.yml | 3 ++- composer.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 35411d0..457772a 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -1,5 +1,5 @@ on: - pull_request: + pull_request_target: paths-ignore: - 'docs/**' - 'README.md' @@ -17,6 +17,7 @@ jobs: secrets: token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} with: + repository: ${{ github.event.pull_request.head.repo.full_name }} os: >- ['ubuntu-latest'] php: >- diff --git a/composer.json b/composer.json index bbfe03e..eba55c9 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "maglnet/composer-require-checker": "^3.8|^4.2", "nyholm/psr7": "^1.3", "phpunit/phpunit": "^9.5", - "rector/rector": "^1.0.0", + "rector/rector": "^1.2", "roave/infection-static-analysis-plugin": "^1.16", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^4.30|^5.24",