Repository navigation
fix(npmprofile): Support pnpm settings-only root packages #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1c15b97
c6c363d
7176bf4
a86e89d
9ab847c
6116fa0
23101f0
8d4245e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Byte-exact test fixture corpus: Semgrep findings on curated fixture content | ||
| # (e.g., pnpm cooldown policy values inside testdata) are categorically false | ||
| # positives. Fixtures mirror real caller files for parser validation and are | ||
| # never executed or shipped. Production policy files remain fully scanned. | ||
| testdata/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "phase": "build-pack", | ||
| "package-directory": "testdata/npm/packages/pnpm-settings-only-valid", | ||
| "package-manager": { | ||
| "name": "pnpm", | ||
| "version": "10.14.0", | ||
| "selection-source": "packageManager", | ||
| "selected-lockfile": "pnpm-lock.yaml", | ||
| "distribution-digest-authority": "registry-integrity" | ||
| }, | ||
| "commands": { | ||
| "install": ["pnpm", "install", "--frozen-lockfile"], | ||
| "build": [], | ||
| "pack": ["pnpm", "pack", "--pack-destination", "<pack-output-directory>"] | ||
| }, | ||
| "expected-subject": "pkg:npm/%40windlass-fixtures/pnpm-settings-only@1.0.0", | ||
| "required-digests": ["sha512", "sha256"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "name": "@windlass-fixtures/pnpm-settings-only", | ||
| "version": "1.0.0", | ||
| "description": "Standalone pnpm package with workspace policy settings", | ||
| "license": "Apache-2.0", | ||
| "repository": "github:windlasstech/slsa-builder", | ||
| "packageManager": "pnpm@10.14.0" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| minimumReleaseAge: 1440 | ||
| minimumReleaseAgeExclude: | ||
| - '@windlass-fixtures/*' | ||
| onlyBuiltDependencies: | ||
| - esbuild | ||
| trustPolicy: no-downgrade | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"phase":"build-pack","package-directory":"testdata/npm/packages/rejected/pnpm-settings-only-subdirectory/packages/undeclared","commands":{},"expected-primary-id":"windlass.verify.error.package-resolution-invalid"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "@windlass-fixtures/pnpm-settings-only-root", | ||
| "version": "1.0.0", | ||
| "private": true, | ||
| "repository": "github:windlasstech/slsa-builder", | ||
| "packageManager": "pnpm@10.14.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "@windlass-fixtures/undeclared-subdirectory", | ||
| "version": "1.0.0", | ||
| "repository": "github:windlasstech/slsa-builder" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| minimumReleaseAge: 1440 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
✨ Removed in commit 8d4245e ✨ |
||
| minimumReleaseAgeExclude: | ||
| - '@windlass-fixtures/*' | ||
| onlyBuiltDependencies: | ||
| - esbuild | ||
| trustPolicy: no-downgrade | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"phase":"build-pack","package-directory":"testdata/npm/packages/rejected/pnpm-workspace-packages-wrong-type","commands":{},"expected-primary-id":"windlass.verify.error.package-resolution-invalid"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "name": "@windlass-fixtures/pnpm-workspace-packages-wrong-type", | ||
| "version": "1.0.0", | ||
| "repository": "github:windlasstech/slsa-builder", | ||
| "packageManager": "pnpm@10.14.0" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pnpm workspace configuration does not set a minimum release age. Newly published packages can be malicious or unstable. AddminimumReleaseAge: 10080(minutes) to wait at least seven days before installing newly published package versions. Added in: v10.16.0 Reference: https://pnpm.io/settings#minimumreleaseage🥳 Removed in commit 8d4245e 🥳