Skip to content

Add CodeQL Analysis for Automated Code Scanning - #10922

Open
AnzalKhan16 wants to merge 1 commit into
SandeepVashishtha:masterfrom
AnzalKhan16:add-codeql
Open

AnzalKhan16 wants to merge 1 commit into
SandeepVashishtha:masterfrom
AnzalKhan16:add-codeql

Conversation

@AnzalKhan16

Copy link
Copy Markdown
Contributor

Problem

While our current workflow relies heavily on manual code reviews and functional testing, we lack an automated static application security testing (SAST) tool. Without continuous static code analysis, subtle security vulnerabilities and code quality anti-patterns could inadvertently slip into the codebase and remain undetected until much later in the development lifecycle.

Solution

This PR integrates GitHub CodeQL into our CI pipeline to automatically perform deep semantic code analysis and detect common security vulnerabilities.

Changes Introduced

  • Added a new GitHub Actions workflow at .github/workflows/codeql.yml.
  • Configured CodeQL to run automatically on every push to master, on all pull requests targeting master, and on a weekly schedule.
  • Uses GitHub's autobuild action to appropriately prepare the environment for CodeQL analysis before scanning.
  • Ensures all analysis results are uploaded directly to the GitHub Security tab for easy triage and visibility by maintainers.
  • Updated the README.md to document the CodeQL integration under the Deployment Security section.

Benefits

  • Automated Security Guardrails: Detects vulnerabilities (like XSS, injection flaws, and unsafe data flows) automatically on every PR.
  • Improved Code Quality: Surfaces semantic code issues that standard linters miss.
  • Proactive Threat Mitigation: Shifts security further left, significantly reducing the risk of introducing insecure code to the default branch.

Issue #10919

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@AnzalKhan16 is attempting to deploy a commit to the sandeepvashishtha's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No application code in the PR — skipped Code Health checks.

See analysis details in CodeScene

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@github-actions

Copy link
Copy Markdown
Contributor

@AnzalKhan16, please resolve the commit so that it will be merged soon ......

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants