Skip to content

Migrate to reusable PHP-CS-Fixer workflow (reset from default) #1

Migrate to reusable PHP-CS-Fixer workflow (reset from default)

Migrate to reusable PHP-CS-Fixer workflow (reset from default) #1

name: "PHP-CS-Fixer"
on:
pull_request:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "feature-*"
push:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "*_actions"
- "feature-*"
permissions:
contents: read
jobs:
php-cs-fixer:

Check failure on line 20 in .github/workflows/new-php-cs-fixer.yaml

View workflow run for this annotation

GitHub Actions / PHP-CS-Fixer

Invalid workflow file

The workflow is not valid. .github/workflows/new-php-cs-fixer.yaml (Line: 20, Col: 5): Error calling workflow 'pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main'. The nested job 'php-cs-fixer' is requesting 'contents: write', but is only allowed 'contents: read'.
uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main
with:
head_ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.repository }}
secrets:
PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }}