Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

build: restrict postinstall scripts during package installation #1266

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 15, 2024

When performing a yarn-based package installation, only a specific group of dependencies will now have postinstall scripts executed. This not only provides additional security benefits but also reduced the amount of script execution that occurs during each install. The workspace scripts are automatically allowed and additional specific packages can be allowed as needed.

@clydin clydin force-pushed the yarn/restrict-scripts branch from b8b5911 to 2e786d1 Compare August 15, 2024 22:43
When performing a yarn-based package installation, only a specific group
of dependencies will now have postinstall scripts executed. This not only
provides additional security benefits but also reduced the amount of script
execution that occurs during each install. The workspace scripts are automatically
allowed and additional specific packages can be allowed as needed.
@clydin clydin force-pushed the yarn/restrict-scripts branch from 2e786d1 to 1698a3a Compare August 15, 2024 23:04
@clydin clydin requested a review from josephperrott August 16, 2024 17:34
@clydin clydin merged commit c500208 into angular:main Aug 16, 2024
7 checks passed
@clydin clydin deleted the yarn/restrict-scripts branch August 16, 2024 19:21
@clydin clydin removed the request for review from josephperrott August 16, 2024 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants