feat: quarantine third-party releases in scaffolded workspaces - #39
Closed
pyramation wants to merge 1 commit into
Closed
feat: quarantine third-party releases in scaffolded workspaces#39pyramation 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 waits 14 days before installing a third-party release, which is where most compromised releases (hijacked maintainer account, typosquat, postinstall stealer) are caught and yanked. Both workspace templates gain apnpm-policy.yaml, the generated block inpnpm-workspace.yaml,policy/policy:checkscripts, and apolicy:checkCI step so the two cannot silently drift.Nothing is exempt. The generated block is a bare
minimumReleaseAgewith nominimumReleaseAgeExcludeat all — a scaffolded project quarantinespgpm,pgsql-testand every@pgpm/*release exactly like any other dependency. Exemptions only pay off once you publish something yourself, soscopes:/maintainers:are commented instructions rather than a default:Supersedes #38, which defaulted to exempting
@____username____/*. That glob was the scaffolder's own scope, not ours, but it is still a whitelist a consumer never asked for — and empty is both stricter and easier to explain.allowBuilds: []keeps install scripts off until someone names one and says why.A scaffold has no lockfile, so its first install resolves everything from the registry and fails if any version — including
pnpm-policyitself — is younger than the wait. A permanent waiver would scar the config for a transient condition, so the README documents the one-time escape, after which the committed lockfile makes it moot:Requires
pnpm-policy≥ 0.2.2 (constructive-io/dev-utils#111, published), which is what letsgenerate/checkrun before a lockfile exists.Verified by scaffolding
pnpm/workspaceinto a temp dir with placeholders substituted: install,policy:checkclean against the committed block, and a--frozen-lockfilere-install;pgpm/workspacechecks clean too.Link to Devin session: https://app.devin.ai/sessions/ffa3b012deac4eb7afb8f49a9af9f9ca
Requested by: @pyramation