Skip to content

Fix #926: Enable CodeQL security scanning#2412

Merged
anshu10sep merged 1 commit intomainfrom
fix/926-enable-codeql
Apr 15, 2026
Merged

Fix #926: Enable CodeQL security scanning#2412
anshu10sep merged 1 commit intomainfrom
fix/926-enable-codeql

Conversation

@anshu10sep
Copy link
Copy Markdown
Collaborator

Summary

Adds CodeQL security scanning to the CI pipeline for automated vulnerability detection in Kotlin/Java code.

Problem

The repository lacked automated security scanning. CodeQL can detect common vulnerability patterns like SQL injection, path traversal, and unsafe deserialization.

Changes

  • .github/workflows/codeql.yml (NEW): CodeQL workflow that runs on push to main and on PRs, scanning Kotlin and Java source code.

Configuration

  • Triggers: push to main, pull requests targeting main
  • Languages: java-kotlin (covers both Kotlin and Java)
  • Build: autobuild mode (auto-detects Gradle)
  • Queries: security-and-quality (extended query suite)

Validation

  • YAML syntax validated
  • Workflow follows GitHub Actions best practices

Fixes #926

Add CodeQL GitHub Actions workflow that runs on:
- Push to main and stable branches
- Pull requests targeting main/stable
- Weekly schedule (Monday 3:00 AM UTC)

Configured for java-kotlin language analysis using the
security-and-quality query suite. Uses build-mode 'none' since
CodeQL supports autobuild for Kotlin/Java without a full Gradle build.

Follows existing workflow patterns (harden-runner, pinned action SHAs).
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.05%. Comparing base (af5409b) to head (4b3487b).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2412   +/-   ##
=========================================
  Coverage     44.05%   44.05%           
  Complexity       19       19           
=========================================
  Files            39       39           
  Lines          4444     4444           
  Branches         51       51           
=========================================
  Hits           1958     1958           
  Misses         2472     2472           
  Partials         14       14           
Flag Coverage Δ
kotlin 72.17% <ø> (ø)
rust 41.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-advanced-security
Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-actions
Copy link
Copy Markdown

Snapshot diff report vs base branch: main
Last updated: Thu Apr 9 19:36:41 PDT 2026, Sha: 4b3487b
No differences detected

@anshu10sep anshu10sep requested a review from dipenpradhan April 10, 2026 03:46
@anshu10sep anshu10sep added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit d309992 Apr 15, 2026
25 checks passed
@anshu10sep anshu10sep deleted the fix/926-enable-codeql branch April 15, 2026 03:06
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.

Enable CodeQL in the repo

4 participants