chore: npm audit fixes, gitleaks hook, gitignore hardening, and script inventory update#1541
Open
aritro2002 wants to merge 6 commits into
Open
chore: npm audit fixes, gitleaks hook, gitignore hardening, and script inventory update#1541aritro2002 wants to merge 6 commits into
aritro2002 wants to merge 6 commits into
Conversation
…t inventory update
Changed Files
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
This PR addresses npm audit findings, hardens the repository's security posture via
.gitignoreand commit hook improvements, and brings the third-party script inventory in sync with the actual codebase.Dependency Updates:
copy-webpack-pluginfrom^11.0.0to^14.0.0inHyperswitch-React-Demo-Appwebpack-dev-serverfrom^5.0.4to^5.2.3inHyperswitch-React-Demo-Apppackage-lock.jsonfor both root and demo app post-auditNote: The remaining 3 moderate vulnerabilities (
uuid < 14.0.0viasockjs→webpack-dev-server) are an open upstream bug insockjs. The suggested fix (npm audit fix --force) would downgradewebpack-dev-serverto1.16.5— a breaking regression. These aredevDependenciesonly and have zero impact on the production bundle.Security —
.gitignoreHardening:*.keystore,*.p12,*.pfx,*.jks,google-services.json,GoogleService-Info.plist,.env,.env.*Security — Commit Hook:
.githooks/commit-msgDocumentation:
3.88.4→3.92.1to match actual usage inHyper.resandBraintreeHelpers.resapple-pay.min.jsBraintree script loaded byBraintreeHelpers.resjs.playground.klarna.com,eu.playground.klarnaevt.com) present in the CSP allowlistChanges Summary
Modified Files:
.gitignore— Added credential, IDE, and AI agent ignore patterns.githooks/commit-msg— Added Gitleaks secret scanning steppackage-lock.json— Updated dependency tree post npm auditpackage.json— Dependency version updatesHyperswitch-React-Demo-App/package.json— Bumpedcopy-webpack-pluginandwebpack-dev-serverHyperswitch-React-Demo-App/package-lock.json— Updated dependency treedocs/SCRIPT_INVENTORY.md— Corrected Braintree version, added missing scripts, added Klarna playground URLsHow did you test it?
npm auditto verify remaining vulnerabilities are upstream-blocked and not actionablewebpack-dev-server@5.2.3is the latest release and still depends on the unfixedsockjs.gitignorepatterns against common credential and IDE file naming conventionssrc/hyper-loader/Hyper.res,src/Utilities/BraintreeHelpers.res,public/build.html,webpack.common.jsScreen.Recording.2026-05-05.at.3.54.54.pm.mov
Checklist
npm run re:build