Commit a8a856d
Disable npm lifecycle scripts and npx for security (#71)
* Disable npm lifecycle scripts and npx for security
- Create Dockerfile with ignore-scripts configuration for npm/yarn
- Disable npx with informative error message
- Update devcontainer.json to use the new Dockerfile
Fixes PDE-183
Co-authored-by: Ona <[email protected]>
* Use dynamic npx path detection instead of hardcoded paths
Replace hardcoded /usr/bin/npx and /usr/local/bin/npx with $(which npx)
to handle different npx installation locations.
Co-authored-by: Ona <[email protected]>
* Trying with postCreateCommand
Co-authored-by: Ona <[email protected]>
---------
Co-authored-by: Ona <[email protected]>1 parent f3c0ab0 commit a8a856d
2 files changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments