diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index 0ea2e96b..ba292c35 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -10,6 +10,9 @@ on: name: backwards compatibility +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f777ece5..9eaaf4eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ on: name: build +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index de438d65..6f44d025 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -15,6 +15,9 @@ on: name: Composer require checker +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/rector-cs.yml b/.github/workflows/rector-cs.yml index cad45899..b512f443 100644 --- a/.github/workflows/rector-cs.yml +++ b/.github/workflows/rector-cs.yml @@ -1,7 +1,7 @@ name: Rector + PHP CS Fixer on: - pull_request_target: + pull_request: paths: - 'src/**' - 'tests/**' @@ -13,7 +13,7 @@ on: - '.php-cs-fixer.dist.php' permissions: - contents: read + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -22,10 +22,7 @@ concurrency: jobs: rector: uses: yiisoft/actions/.github/workflows/rector-cs.yml@master - secrets: - token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - php: '8.1' + php: 8.1 required-packages: >- ['db'] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index a51a0e77..4e2b077a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -13,6 +13,9 @@ on: name: Static analysis +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true