Skip to content

frontend: build frontend with npm ci --ignore-scripts#4157

Open
thisconnect wants to merge 1 commit into
BitBoxSwiss:masterfrom
thisconnect:frontend-npm-ignore-scripts
Open

frontend: build frontend with npm ci --ignore-scripts#4157
thisconnect wants to merge 1 commit into
BitBoxSwiss:masterfrom
thisconnect:frontend-npm-ignore-scripts

Conversation

@thisconnect
Copy link
Copy Markdown
Collaborator

The web fronternd and all its dependencies should work without postintall hook, this may reduce some evil scripts in npm deps from executing malicious code at install time.

Most important make tasks such as webdev, webbuild, weblint and webtest all seem to work and not require running any postinstall npm hooks.

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • writing unit tests
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

The web fronternd and all its dependencies should work without
postintall hook, this may reduce some evil scripts in npm deps
from executing malicious code at install time.

Most important make tasks such as webdev, webbuild, weblint and
webtest all seem to work and not require running any postinstall
npm hooks.
@thisconnect thisconnect marked this pull request as ready for review May 19, 2026 12:26
@thisconnect thisconnect requested a review from a team as a code owner May 19, 2026 12:26
Comment thread .github/workflows/ci.yml
- name: Install dependencies
working-directory: frontends/mobiletests
run: npm ci
run: npm ci --ignore-scripts
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oups, I wasn't planning to add ignore-scripts to the mobiletests install dependencies step.

but CI seems happy, keeping it here for now.

I didn't check all deps, but the explicit android-e2e test has appium which has a postinstall hook.

@thisconnect thisconnect requested review from bznein and shonsirsha May 19, 2026 12:33
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