Repository navigation
feat(security): add SRI hash calculator - #652
Merged
Merged
Conversation
|
@toyes3429 is attempting to deploy a commit to the Vicky's projects Team on Vercel. A member of the Team first needs to authorize it. |
TheVicky1
approved these changes
Oct 23, 2026
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.
🏛️ PACT Pull Request
1. Related Issue
Closes #433
2. Summary of Changes
generateSriHash(content, algorithm?)insrc/lib/security/sri-hash-calculator.ts.stringandBuffercontent.3. Motivation & Context
This utility provides a reusable way to generate Subresource Integrity hashes for scripts and stylesheets, helping support integrity verification for web resources.
4. Implementation Details
cryptomodule.sha384andsha512.TypeError.5. Testing & Local Validation
npm run lint— ESLint passed with 0 errorsnpx tsc --noEmit— TypeScript strict check passed with 0 errorsnpm test— Full authoritative test matrix passednpm run test:file -- sri-hash-calculator— Targeted test suite passednode scratch/secret-scan.mjs— Zero secrets or sensitive credentials detectednpm run build— Production build succeeded without errorsVerification performed:
npm test -- sri-hash-calculator— 7 tests passed, 0 failed.npm run typecheck— Reported as passed locally.6. UI & Visual Changes
7. Database & Security Impact
8. Documentation Impact
9. Contributor Quality Checklist
.env.localfiles are included.upstream/mainwith an appropriate prefix.