Skip to content
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

Add lavamoat to prevent install scripts #231

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ukorvl
Copy link
Member

@ukorvl ukorvl commented Feb 7, 2025

This patch adds @lavamoat/allow-scripts package to prevent npm lifecycle scripts running without direct intention of a developer.
This is one of the steps of improving our npm security. Restricting npm lifecycle scripts decreases the possibility of supply chain attacks using malicious npm packages.

How it works? By adding ignore-scripts=true to .npmrc we are restricting all lifecycle scripts.

@ukorvl ukorvl force-pushed the add-lavamoat-to-prevent-install-scripts branch from ebc494b to 61301ce Compare February 7, 2025 19:01
@ukorvl ukorvl marked this pull request as draft February 7, 2025 19:16
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