Skip to content

chore: pin deps + yarn supply chain protections#1

Open
Emeric-Mi wants to merge 1 commit intomainfrom
chore/pin-deps-supply-chain
Open

chore: pin deps + yarn supply chain protections#1
Emeric-Mi wants to merge 1 commit intomainfrom
chore/pin-deps-supply-chain

Conversation

@Emeric-Mi
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request pins dependency versions across several package.json files and introduces a .yarnrc.yml configuration to enhance supply chain security, including an age gate for npm packages and disabling lifecycle scripts. A critical issue was identified where disabling lifecycle scripts globally will break the necessary postinstall setup for the project; it is recommended to use an allow-list for specific scripts instead.

npmMinimalAgeGate: 10080

# Disable ALL lifecycle scripts (postinstall, etc.)
enableScripts: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Disabling all lifecycle scripts globally will block the postinstall scripts defined in cre/attestation/package.json and cre/verification/package.json. These scripts appear to be essential for the project's setup, specifically for running cre-setup and building the @save/core dependency. This change will break the automated installation process. To maintain supply chain protection while allowing these specific scripts, consider allow-listing them using dependenciesMeta in your package.json or ensure that the setup process is updated to include manual execution of these scripts.

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