Repository navigation
Retire the postinstall hooks, rename ci:* scripts to the test:full family - #2712
Merged
Merged
Conversation
- Renames ci:test → test:full, ci:prepare/ci:post → _test:full:pre/_test:full:post: the chain is a local full-test entry point, not CI-only. - Underscore prefixes are deliberate: real npm pre/post hooks would be suppressed under ignore-scripts. - The freed ci:* names retire with no aliases.
- Drops the root and docsy.dev postinstall hooks: no Docsy package declares npm lifecycle scripts anymore, so script-suppressed installs behave identically to default installs. - Clone/submodule docs and the smoke clone leg now invoke the underlying command by name: npm run install:theme-deps. - make-site.sh consumer simulation goes fully script-suppressed (ignore-scripts=true) with an explicit theme-deps bootstrap for the NPM channel; the docsy allowScripts machinery had no remaining purpose. - README clone recipe switches to install:safe: a plain npm install no longer populates theme/node_modules.
- Adds the [docsy#2712] refs now that the PR number exists, plus the probe-produced .lycheecache entry.
- Scopes the hooks claim honestly: install hooks, not all lifecycle hooks (theme prepack/postpack and run hooks remain). - Notes why the make-site engines floor stays at the repo's own 11.16. - Dedupes the changelog hooks-dropped fact; leans the maintainer-notes test:full sentence and a smoke progress message.
- With the postinstall hook gone, npm install google/docsy no longer self-installs Bootstrap/Font Awesome: the dev/testing recipe gains the explicit install:theme-deps step and a why note (adversarial-review finding). - Trues up two remaining plain-npm-install remedy messages (smoke assert, extract-method.pl) to the sanctioned commands.
chalin
marked this pull request as ready for review
August 9, 2026 20:59
- Keeps the submodule procedure at the project root (git -C), so the config append and the install:theme-deps step run from the documented cwd (pre-existing defect, surfaced by the renamed step). - Drops the two stale hasInstallScript lock flags for root and docsy.dev: the manifests no longer declare install hooks; hand-removed since lock-regenerating installs are locked down, mechanically equivalent, and re-proven by CI's npm ci leg.
- Scopes the .npmrc immunity claim to the site's own installs: --prefix re-roots npm's project config, so the nested theme-deps leg is protected by its inline flags, not the .npmrc (adversarial round-3 finding). - Notes that -l expects an installed checkout; make-site never bootstrapped local-checkout theme deps.
chalin
added a commit
to chalin/docsy
that referenced
this pull request
Aug 12, 2026
Prove from the committed manifests, locks, .npmrc, and workflows alone that the hardening invariants (docsy#2700, docsy#2702, docsy#2712) still hold: registry + integrity coverage, non-registry allowlist, campaign IOC denylist, install-script inventory with a lock-matching allowScripts pin, locked script-free install commands, and credential-isolated workflow installs. Wired into test:full via _test:full:post.
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm rebuild(_install:safe:post) as the only script any install runs. Every install channel now behaves the same with and without--ignore-scripts.ci:*script family:ci:test→test:full,ci:prepare/ci:post→_test:full:pre/_test:full:post:ci:*names retire.ignore-scripts.postinstallhooks:npm run install:theme-depsby name (breaking note in the changelog).npm run install:safe: a plainnpm installno longer populatestheme/node_modules.ignore-scripts=true) with an explicit theme-deps bootstrap on the NPM channel; the DocsyallowScriptsallowlist had no remaining purpose.