From 92dde15b22c5150e54d99a6cbdb39f996998d5ba Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 7 Nov 2024 21:34:13 +0300 Subject: [PATCH] Improve rector CI (#155) --- .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 b2402ad..dab1a60 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "nyholm/psr7": "^1.4", "phpunit/phpunit": "^9.5", "psr/container": "^2.0", - "rector/rector": "^1.0", + "rector/rector": "^1.2", "roave/infection-static-analysis-plugin": "^1.16", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^4.30|^5.21",