| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,6 +44,16 @@ The `audit signatures` command will also verify the provenance attestations of d | |||
| 44 | 44 | Because provenance attestations are such a new feature, security features may be added to (or changed in) the attestation format over time. | |
| 45 | 45 | To ensure that you're always able to verify attestation signatures check that you're running the latest version of the npm CLI. Please note this often means updating npm beyond the version that ships with Node.js. | |
| 46 | 46 | ||
| 47 | + To include the full sigstore attestation bundles in JSON output, use: | ||
| 48 | + | ||
| 49 | + ```bash | ||
| 50 | + $ npm audit signatures --json --include-attestations | ||
| 51 | + ``` | ||
| 52 | + | ||
| 53 | + This adds a `verified` array to the JSON output containing the attestation | ||
| 54 | + bundles (DSSE envelopes, verification material, and transparency log entries) | ||
| 55 | + for each verified package. | ||
| 56 | + | ||
| 47 | 57 | The npm CLI supports registry signatures and signing keys provided by any registry if the following conventions are followed: | |
| 48 | 58 | ||
| 49 | 59 | 1. Signatures are provided in the package's `packument` in each published version within the `dist` object: | |
@@ -357,6 +367,18 @@ run any pre- or post-scripts. | |||
| 357 | 367 | ||
| 358 | 368 | ||
| 359 | 369 | ||
| 370 | + #### `include-attestations` | ||
| 371 | + | ||
| 372 | + * Default: false | ||
| 373 | + * Type: Boolean | ||
| 374 | + | ||
| 375 | + When used with `npm audit signatures --json`, includes the full sigstore | ||
| 376 | + attestation bundles in the JSON output for each verified package. The | ||
| 377 | + bundles contain DSSE envelopes, verification material, and transparency log | ||
| 378 | + entries. | ||
| 379 | + | ||
| 380 | + | ||
| 381 | + | ||
| 360 | 382 | #### `workspace` | |
| 361 | 383 | ||
| 362 | 384 | * Default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -281,6 +281,8 @@ of a relative number of days. | |||
| 281 | 281 | ||
| 282 | 282 | This config cannot be used with: `before` | |
| 283 | 283 | ||
| 284 | + This value is not exported to the environment for child processes. | ||
| 285 | + | ||
| 284 | 286 | #### `bin-links` | |
| 285 | 287 | ||
| 286 | 288 | * Default: true | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -623,6 +623,8 @@ of a relative number of days. | |||
| 623 | 623 | ||
| 624 | 624 | This config cannot be used with: `before` | |
| 625 | 625 | ||
| 626 | + This value is not exported to the environment for child processes. | ||
| 627 | + | ||
| 626 | 628 | #### `bin-links` | |
| 627 | 629 | ||
| 628 | 630 | * Default: true | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ Note that nested packages will *also* show the paths to the specified packages. | |||
| 23 | 23 | For example, running `npm ls promzard` in npm's source tree will show: | |
| 24 | 24 | ||
| 25 | 25 | ```bash | |
| 26 | - npm@11.11.1 /path/to/npm | ||
| 26 | + npm@11.12.1 /path/to/npm | ||
| 27 | 27 | └─┬ init-package-json@0.0.4 | |
| 28 | 28 | └── promzard@0.1.5 | |
| 29 | 29 | ``` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,6 +182,8 @@ of a relative number of days. | |||
| 182 | 182 | ||
| 183 | 183 | This config cannot be used with: `before` | |
| 184 | 184 | ||
| 185 | + This value is not exported to the environment for child processes. | ||
| 186 | + | ||
| 185 | 187 | ### See Also | |
| 186 | 188 | ||
| 187 | 189 | * [package spec](/using-npm/package-spec) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,6 +54,8 @@ A `package` is interpreted the same way as other commands (like `npm install`) a | |||
| 54 | 54 | * f) a `<name>` that has a "latest" tag satisfying (e) | |
| 55 | 55 | * g) a `<git remote url>` that resolves to (a) | |
| 56 | 56 | ||
| 57 | + If either (a) or (b) is specified as a relative path, it should begin with an explicit `./` prefix. | ||
| 58 | + | ||
| 57 | 59 | The publish will fail if the package name and version combination already exists in the specified registry. | |
| 58 | 60 | ||
| 59 | 61 | Once a package is published with a given name and version, that specific name and version combination can never be used again, even if it is removed with [`npm unpublish`](/commands/npm-unpublish). | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,6 @@ description: Manage trusted publishing relationships between packages and CI/CD | |||
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | 8 | ||
| 9 | - ```bash | ||
| 10 | - | ||
| 11 | - ``` | ||
| 12 | - | ||
| 13 | 9 | Note: This command is unaware of workspaces. | |
| 14 | 10 | ||
| 15 | 11 | ### Prerequisites | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -347,6 +347,8 @@ of a relative number of days. | |||
| 347 | 347 | ||
| 348 | 348 | This config cannot be used with: `before` | |
| 349 | 349 | ||
| 350 | + This value is not exported to the environment for child processes. | ||
| 351 | + | ||
| 350 | 352 | #### `bin-links` | |
| 351 | 353 | ||
| 352 | 354 | * Default: true | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces. | |||
| 14 | 14 | ||
| 15 | 15 | ### Version | |
| 16 | 16 | ||
| 17 | - 11.11.1 | ||
| 17 | + 11.12.1 | ||
| 18 | 18 | ||
| 19 | 19 | ### Description | |
| 20 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -770,6 +770,18 @@ the order in which omit/include are specified on the command-line. | |||
| 770 | 770 | ||
| 771 | 771 | ||
| 772 | 772 | ||
| 773 | + #### `include-attestations` | ||
| 774 | + | ||
| 775 | + * Default: false | ||
| 776 | + * Type: Boolean | ||
| 777 | + | ||
| 778 | + When used with `npm audit signatures --json`, includes the full sigstore | ||
| 779 | + attestation bundles in the JSON output for each verified package. The | ||
| 780 | + bundles contain DSSE envelopes, verification material, and transparency log | ||
| 781 | + entries. | ||
| 782 | + | ||
| 783 | + | ||
| 784 | + | ||
| 773 | 785 | #### `include-staged` | |
| 774 | 786 | ||
| 775 | 787 | * Default: false | |
@@ -1086,6 +1098,8 @@ of a relative number of days. | |||
| 1086 | 1098 | ||
| 1087 | 1099 | This config cannot be used with: `before` | |
| 1088 | 1100 | ||
| 1101 | + This value is not exported to the environment for child processes. | ||
| 1102 | + | ||
| 1089 | 1103 | #### `name` | |
| 1090 | 1104 | ||
| 1091 | 1105 | * Default: null | |
| Back | FazBrowse Home | New Git URL |
0 commit comments