-
Notifications
You must be signed in to change notification settings - Fork 14
Add .npmrc with security hardening settings #462
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ignore-scripts=true | ||
|
esezen marked this conversation as resolved.
esezen marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important Issue: The PR description acknowledges this with the
At minimum, the README note should be expanded to mention that |
||
| save-exact=true | ||
|
constructor-claude-bedrock[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: If the goal is truly reproducible builds, the existing
This is a low-risk setting but the distinction should be made clear in the PR description or a follow-up comment. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,8 +52,11 @@ window.addEventListener('cio.client.search.getSearchResults.completed', (event) | |
| ## Development / npm commands | ||
|
|
||
| ```bash | ||
| npm run prepare # one-time after cloning: install husky git hooks (pre-push lint) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The comment says "one-time after cloning" but Also, since this is a client-side browser library consumed by downstream projects, it is worth noting that the |
||
| npm run lint # run lint on source code and tests | ||
| npm run test # run tests | ||
| npm run coverage # run tests and serves coverage reports from localhost:8081 | ||
| npm run docs # output documentation to `./docs` directory | ||
| ``` | ||
|
|
||
| > **Note:** `.npmrc` sets `ignore-scripts=true` for supply-chain safety, so lifecycle scripts (including husky's hook installation) do not run automatically on `npm install`. Run `npm run prepare` once after cloning to enable the `pre-push` lint hook. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important Issue: This note only mentions husky, but omits the more impactful case: The note should either:
Recommended expanded note: |
||
Uh oh!
There was an error while loading. Please reload this page.