Skip to content

Improve npm package installation security - #57

Open
microbit-grace wants to merge 2 commits into
masterfrom
npm-update
Open

Improve npm package installation security#57
microbit-grace wants to merge 2 commits into
masterfrom
npm-update

Conversation

@microbit-grace

Copy link
Copy Markdown
Contributor

.npmrc:

min-release-age=7 (cooldown; @microbit/* and @microbit-foundation/* exempt)
allow-git/remote/file/directory=root (block transitive non-registry deps)
strict-allow-scripts=true + engine-strict=true

package.json:

  • Add engine restrictions (node >= 24, npm >= 11.18)
  • allowScripts have been configured so that npm i doesn't fail
  • @types/node was added as a dev dep

package-lock.json files regenerated.

GitHub workflows - Updated node and npm versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant