feat: quarantine third-party releases in scaffolded workspaces - #38
Closed
pyramation wants to merge 1 commit into
Closed
feat: quarantine third-party releases in scaffolded workspaces#38pyramation wants to merge 1 commit into
pyramation wants to merge 1 commit into
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This was referenced Aug 5, 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.
Summary
Every workspace
pgpm initcreates now starts with a 14-day quarantine on third-party releases, which is where most compromised releases (hijacked maintainer account, typosquat, postinstall stealer) are caught and yanked. Both workspace templates (pnpm/workspace,pgpm/workspace) gain apnpm-policy.yaml, the generated block inpnpm-workspace.yaml,policy/policy:checkscripts, and apolicy:checkstep in the template CI so the two cannot silently drift.The exemption default is
@____username____/*— npm reserves@<your-username>for you, so it is the one scope a scaffolded project can claim without asking. Commented next to it is how a maintainer widens that to whole npm accounts (maintainers:+pnpm-policy inventory), plus commented examples forallowBuildsand a time-boxedexceptionswaiver.Two things the templates deliberately do not do:
No blanket build approvals.
allowBuilds: []keeps install scripts off until someone names one and says why.No standing waiver for
pnpm-policyitself. A scaffold has no lockfile, so its first install resolves everything from the registry and fails if any version — includingpnpm-policyor its pinnedyamlize/nested-obj— is younger than the wait. Waiving that permanently would scar the config for a transient condition, so the README documents the one-time escape instead, after which the committed lockfile makes it moot:Requires
pnpm-policy≥ 0.2.2 (constructive-io/dev-utils#111), which is what letsgenerate/checkrun before a lockfile exists; the templates pin^0.2.2.Verified by scaffolding
pnpm/workspaceinto a temp dir with the placeholders substituted: install,policy:checkclean against the committed block, and a--frozen-lockfilere-install.Link to Devin session: https://app.devin.ai/sessions/ffa3b012deac4eb7afb8f49a9af9f9ca
Requested by: @pyramation