Skip to content

Harden GitHub workflows #46

Harden GitHub workflows

Harden GitHub workflows #46

Workflow file for this run

name: Rector + PHP CS Fixer
on:
pull_request:
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/rector-cs.yml'
- 'composer.json'
- 'rector.php'
- '.php-cs-fixer.dist.php'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rector:

Check failure on line 21 in .github/workflows/rector-cs.yml

View workflow run for this annotation

GitHub Actions / Rector + PHP CS Fixer

Invalid workflow file

The workflow is not valid. .github/workflows/rector-cs.yml (Line: 21, Col: 3): Error calling workflow 'yiisoft/actions/.github/workflows/rector-cs.yml@master'. The nested job 'rector-cs' is requesting 'contents: write', but is only allowed 'contents: read'.
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
with:
php: '8.1'