Skip to content

Commit ef923b8

Browse files
committed
ci(docs): use pnpm_config_ignore_scripts env (dlx rejects the flag)
`pnpm dlx --ignore-scripts ...` errors with "Unknown option: 'ignore- scripts'" — pnpm only honors the flag on `pnpm install`. Set the same behavior via the `pnpm_config_ignore_scripts=true` env var, which pnpm reads at runtime. Preserves the postinstall-blocking guarantee against malicious transitives without changing the command name.
1 parent 0515f56 commit ef923b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/markdown-lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ jobs:
5353

5454
- name: Run markdownlint
5555
# Pin must match .pre-commit-config.yaml so prek and CI behave identically.
56-
run: pnpm dlx --ignore-scripts markdownlint-cli@0.45.0 '**/*.md'
56+
# pnpm dlx doesn't accept --ignore-scripts as a flag; the env var
57+
# disables postinstall scripts on transitives the same way.
58+
env:
59+
pnpm_config_ignore_scripts: 'true'
60+
run: pnpm dlx markdownlint-cli@0.45.0 '**/*.md'

0 commit comments

Comments
 (0)