fix(security): apply security fixes and add pre-push version sync#4
Merged
fix(security): apply security fixes and add pre-push version sync#4
Conversation
1. SQL Injection Prevention - Parameterized queries on user input 2. XSS Vulnerabilities - HTML entity encoding in output rendering 3. CSRF Token Implementation - Added token validation on state-changing operations 4. Password Hashing - Upgraded to bcrypt with stronger salt rounds 5. Authentication Session - Implemented secure session tokens with expiration 6. API Rate Limiting - Added rate limit middleware to prevent brute force attacks 7. Dependency Audit - Updated vulnerable package versions and patched known CVEs
- Add scripts/sync-version.js: analyzes commits since last tag using local git (no GITHUB_TOKEN needed) and bumps package.json version following the same releaseRules as .releaserc.json - Add pre-push hook in lefthook.yml to run sync-version automatically - Add pnpm version:sync script for manual use - Add 'security' as a patch release type in .releaserc.json and sync-version - Sync package.json to 1.1.1 (security fix on this branch)
Coverage Report |
QA Report
|
Owner
Author
|
🎉 This PR is included in version 1.1.1 |
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.
Summary
scripts/sync-version.js: analyzes commits since last git tag using pure git (noGITHUB_TOKENneeded) and bumpspackage.jsonfollowing the same rules as.releaserc.jsonpre-pushhook inlefthook.ymlto run the sync automatically before every push — blocks and asks to commit if the version changessecurityas apatchrelease type in.releaserc.jsonandsync-version.js(with🔒 Securitysection in the changelog)pnpm version:syncscript for manual usepackage.jsonto1.1.1How the hook works