Skip to content

Commit 7219759

Browse files
westonruterclaude
andcommitted
Copilot setup steps: install husky hooks after npm ci
The repo's .npmrc sets `ignore-scripts = true` to mitigate supply-chain attacks, which also blocks this project's own `prepare` script from running. So `npm ci` leaves the husky pre-commit hooks (phpstan-diff, PHPCS) uninstalled. Run `npm run prepare` explicitly so the agent's commits get the same hook coverage as a local contributor's. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4b36b63 commit 7219759

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
cache: npm
3838
- name: npm install
3939
run: npm ci
40+
- name: Install husky git hooks
41+
# The repo's .npmrc sets `ignore-scripts = true`, so `npm ci` skips the
42+
# `prepare` script that wires up husky. Run it explicitly so the agent's
43+
# commits get the pre-commit hooks (phpstan-diff, PHPCS) applied.
44+
run: npm run prepare
4045
- name: Composer install
4146
run: composer install --no-interaction --no-progress
4247
- name: Build assets

0 commit comments

Comments
 (0)