qlscan
v0.0.46
Published
A zero-setup CodeQL pre-commit scanner for JavaScript/TypeScript.
Downloads
103
Maintainers
Readme
QLScanner
A cross-platform CLI (Node.js) that bundles and manages CodeQL for pre-commit scanning of JavaScript.
Overview
QLScanner is a zero-setup security scanning tool that integrates CodeQL analysis into your JavaScript/TypeScript development workflow. It automatically manages CodeQL installation, query packages, and provides clear, actionable security reports.
Features
- Zero-setup required - automatically manages CodeQL installation
- Pre-configured security scanning for JavaScript/TypeScript
- Automatic query pack management
- Clear, readable Markdown reports
- Pre-commit integration ready
- Optimized performance with multi-threading
- Uses official CodeQL security and quality query suite
Installation
npm install -g qlscanUsage
Run a security scan in your JavaScript/TypeScript project:
qlscan scanThe tool will:
- Set up CodeQL if not already installed
- Download and manage required query packages
- Create and analyze a CodeQL database
- Generate a detailed security report in your project root
Requirements
- Node.js 22.x or higher
- Git installed and available in PATH
- Read/write permissions for the project directory
How It Works
QLScanner simplifies the CodeQL setup and scanning process by:
- Managing the CodeQL CLI installation
- Handling query pack downloads and updates
- Creating and analyzing CodeQL databases
- Converting complex results into readable reports
- Maintaining a clean project structure with
.gitignoreintegration
Output
Scan results are saved in codeql-results.md in your project root, containing:
- Summary of findings
- Detailed vulnerability descriptions
- File locations and line numbers
- Severity levels
- Actionable fix suggestions
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
ISC License
Author
Henrique Costa
