You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): replace npx with npm exec to prevent unintended remote package execution (#106)
* fix(security): replace npx with npm exec to prevent unintended remote package execution
npx silently downloads and runs packages from the registry if they aren't
installed locally, which is a supply chain security risk. npm exec only
runs already-installed packages.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(security): add --no flag to prevent remote package downloads
npm exec without --no still allows fetching uninstalled packages from
the registry, just like npx. The --no flag ensures only locally
installed packages can be executed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,15 @@ If your source files are in a different location (e.g., `app/` instead of `src/`
69
69
Regenerates the entire records file by scanning all source files matching `sourceGlob`. Useful for initialization or picking up changes from skipped Git hooks.
Checks the provided files and updates the records. Exits with code 1 if errors increase (preventing the commit), otherwise updates the records file for the checked files. Reports when errors decrease, celebrating your progress. Deleted files are automatically removed from the records (no need to pass their paths).
If no files are provided, exits cleanly with a success message.
@@ -87,23 +87,23 @@ If no files are provided, exits cleanly with a success message.
87
87
Checks specific files without updating records. Exits with code 1 if checked files show increased error counts (or new errors), or if any provided file does not exist. Reports when errors decrease, celebrating your progress. Primarily for CI to ensure PRs don't introduce new compiler errors.
Checks all source files matching `sourceGlob` and reports the total error count. The records file is **not** updated in this mode.
96
96
97
97
```bash
98
-
npx @doist/react-compiler-tracker
98
+
npm exec --no -- @doist/react-compiler-tracker
99
99
```
100
100
101
101
### `--show-errors`
102
102
103
103
Shows error information from the compiler including file path, line number, and error reason. Can be combined with any command. Errors are displayed for all checked files regardless of whether they increased.
0 commit comments