Skip to content

Commit 1daf21c

Browse files
committed
Fix rector workflow permissions
1 parent f039d1e commit 1daf21c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/rector-cs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ on:
1212
- '.php-cs-fixer.dist.php'
1313

1414
permissions:
15-
contents: write
15+
contents: read
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
1919
cancel-in-progress: true
2020

2121
jobs:
2222
rector:
23+
permissions:
24+
contents: write # Required to push PHP CS Fixer and Rector changes back to the branch.
2325
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
2426
with:
2527
php: '8.1'

0 commit comments

Comments
 (0)