Added retire.js for Module Vulnerability Scanning#55
Merged
Conversation
Pull Request Test Coverage Report for Build 18891955159Details
💛 - Coveralls |
nihansofia0127
approved these changes
Oct 30, 2025
nihansofia0127
left a comment
There was a problem hiding this comment.
Nice work! Adding a security scan job to CI plus a retire-based npm script and dependency will help us catch vulnerabilities earlier. I am approving this PR and think it’s ready to merge!
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.
Static Analysis Tool: retire.js
retire.js helps detect known vulnerabilities in JavaScript libraries to limit the use of vulnerable components in web or node apps. This tool can be used to run static scans on an app to search for JavaScript libraries and Node.js modules that contain known vulnerabilities. The tool's results provide details on the vulnerabilities found.
Usage
Get scan results in a readable JSON format:
npm run security-scanOutput
See
retirejs-output.txtfor a sample output from a scan on the app.For each file found to have known vulnerabilities, the vulnerabilities are given with:
Evidence of Installation
Full sample output saved in
retirejs-output.txt.retireas adevDependenciesinpackages.json.scriptinpackages.jsonto run retire.js with the output formatted in easily readable JSON.Customization & Integration
Customization can be applied for:
node_modulesfolder was excluded from the scan in.retireignorenpm auditto check vulnerabilities in these server-side dependencies.Integration into the development process is possible via Github Actions.
Possible Errors: