Skip to content

Commit 19e64de

Browse files
author
berfinyuksel
committed
Update new PHP-CS-Fixer workflow (permissions & inputs)
1 parent 71b5d05 commit 19e64de

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed
Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
name: "PHP-CS-Fixer"
22

33
on:
4-
pull_request:
5-
branches:
6-
- "[0-9]+.[0-9]+"
7-
- "[0-9]+.x"
8-
- "feature-*"
9-
push:
10-
branches:
11-
- "[0-9]+.[0-9]+"
12-
- "[0-9]+.x"
13-
- "*_actions"
14-
- "feature-*"
4+
pull_request:
5+
branches:
6+
- "[0-9]+.[0-9]+"
7+
- "[0-9]+.x"
8+
- "feature-*"
9+
push:
10+
branches:
11+
- "[0-9]+.[0-9]+"
12+
- "[0-9]+.x"
13+
- "*_actions"
14+
- "feature-*"
1515

1616
permissions:
17-
contents: read
17+
contents: write
1818

1919
jobs:
20-
php-cs-fixer:
21-
uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main
22-
with:
23-
head_ref: ${{ github.head_ref || github.ref_name }}
24-
repository: ${{ github.repository }}
25-
26-
secrets:
27-
PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }}
28-
20+
php-cs-fixer:
21+
uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main
22+
with:
23+
head_ref: ${{ github.head_ref || github.ref_name }}
24+
repository: ${{ github.repository }}
25+
secrets:
26+
PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)