Skip to content

Conversation

@koralkulacoglu
Copy link
Contributor

@koralkulacoglu koralkulacoglu commented Sep 24, 2025

TICKET: DX-1510

Replace unpinned npm install with npm ci across publish scripts to prevent supply chain attacks and ensure reproducible builds.

@koralkulacoglu koralkulacoglu marked this pull request as ready for review September 24, 2025 17:42
@koralkulacoglu koralkulacoglu requested review from a team as code owners September 24, 2025 17:42
@koralkulacoglu koralkulacoglu marked this pull request as draft September 24, 2025 17:56
@koralkulacoglu koralkulacoglu marked this pull request as ready for review September 24, 2025 18:14
lcovar
lcovar previously approved these changes Sep 25, 2025
Copy link
Contributor

@mukeshsp mukeshsp left a comment

Choose a reason for hiding this comment

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

Please fix the conflicts and failing tests

Copy link
Contributor

@louib louib left a comment

Choose a reason for hiding this comment

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

Are you sure those scripts are still used? I think those three modules are published with lerna just like all the other BitGoJS modules

# install
npm install
# install - generate package-lock.json first, then use npm ci for reproducible builds
npm install --package-lock-only
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't regenerating a package-lock.json file first defeat the purpose of running npm ci? Why would the package-lock.json file be incomplete at the time of publishing?

Copy link
Contributor

@Marzooqa Marzooqa left a comment

Choose a reason for hiding this comment

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

CI failing

@koralkulacoglu koralkulacoglu force-pushed the DX-1510-Pin-npm-Commands-by-Hash-in-Build-Scripts branch from 12256c3 to 3f2c274 Compare September 29, 2025 18:00
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.

7 participants