ci(security): add CodeQL static analysis workflow - #117
Merged
Bindu2020324 merged 1 commit intoJun 21, 2026
Merged
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Contributor
Author
|
@Bindu2020324 Thanks for merging the PR. Since this contribution introduced a new CI security workflow, integrated CodeQL-based SAST, and incorporated additional workflow hardening (immutable action pinning, least-privilege checkout configuration, and CI security improvements) based on review feedback, I believe it aligns more closely with a Medium or Hard difficulty classification rather than Easy. I'd appreciate it if you could reconsider the difficulty label. |
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.
Related issue
Closes #110
Summary
This PR introduces a dedicated GitHub CodeQL workflow to perform automated static security analysis for the JavaScript codebase.
The workflow complements the existing CI pipeline by continuously scanning the repository for security vulnerabilities, code quality issues, and common coding mistakes without affecting the application's runtime behavior.
Changes
Added
.github/workflows/codeql.ymlConfigured CodeQL to analyze the JavaScript codebase
Enabled execution on:
pushpull_requestIncluded dependency installation and project build steps before analysis (where applicable)
Configured CodeQL to upload SARIF results to GitHub Security for review
Why
While the current CI validates build and functional correctness, it does not perform static security analysis.
Integrating CodeQL helps identify potential vulnerabilities such as unsafe coding patterns, injection risks, insecure API usage, and other maintainability concerns early in the development lifecycle. Running these checks automatically on every contribution improves confidence in incoming changes and strengthens the repository's overall security posture.
Impact
Verification
push,pull_request, and scheduled executionManual Verification
Checklist