Skip to content

Commit 5d9925b

Browse files
authored
gha: fix workflow by allowing the composer-normalize plugin (#1412)
* gha: fix workflow by allowing the composer-normalize plugin We don't need to enable it in the project itself, but at least in this workflow which explicitly uses it. See https://github.com/barryvdh/laravel-ide-helper/actions/runs/3980013548/jobs/6822812621#step:4:34 ``` Error: ergebnis/composer-normalize (installed globally) contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. You can run "composer global config --no-plugins allow-plugins.ergebnis/composer-normalize [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false) ``` * gha: also run this workflow when it is changed itself
1 parent 9e50460 commit 5d9925b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/composer-normalize.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: normalize composer.json
33
on:
44
push:
55
paths:
6+
- .github/workflows/composer-normalize.yml
67
- composer.json
78

89
jobs:
@@ -18,6 +19,7 @@ jobs:
1819

1920
- name: Normalize composer.json
2021
run: |
22+
composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true
2123
composer global require ergebnis/composer-normalize
2224
composer normalize
2325

0 commit comments

Comments
 (0)