diff --git a/.github/workflows/autoformat.yml b/.github/workflows/autoformat.yml index cff69efae..49781fa4d 100644 --- a/.github/workflows/autoformat.yml +++ b/.github/workflows/autoformat.yml @@ -2,8 +2,6 @@ name: Autoformat on: push: - branches: - - '*' jobs: composer-normalize: @@ -54,6 +52,11 @@ jobs: php-cs-fixer: runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. + contents: write + steps: - uses: actions/checkout@v4 with: diff --git a/composer.json b/composer.json index 7ddf75806..d9d21b06b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "amphp/http-server": "^2.1", "dms/phpunit-arraysubset-asserts": "dev-master", "ergebnis/composer-normalize": "^2.28", - "friendsofphp/php-cs-fixer": "3.30.0", + "friendsofphp/php-cs-fixer": "3.45.0", "mll-lab/php-cs-fixer-config": "^5", "nyholm/psr7": "^1.5", "phpbench/phpbench": "^1.2",