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",