feat: Add CodeQL security analysis workflow#5
Merged
Conversation
Add comprehensive CodeQL static analysis to CI/CD pipeline for continuous security monitoring of Rust codebase. Features: - Runs on every push and pull request - Weekly scheduled scans (Sundays at 00:00 UTC) - Security-extended query suite for thorough vulnerability detection - Uses build-mode: none for fast Rust analysis (rust-analyzer) - Results uploaded to GitHub Security tab Documentation: - Added CodeQL badge to README.md - Updated SECURITY.md with CodeQL details - 30-minute timeout to prevent workflow hangs
Remove unnecessary matrix strategy since we only have a single language (Rust). Remove master branch references as it will never exist in this project. Changes: - Removed matrix strategy (lines 28-32) - Changed language from matrix variable to static 'rust' value - Removed 'master' from branch triggers (only 'main' remains) - Simplified category in analyze step to '/language:rust'
Upgrade actions to latest versions to avoid deprecation warnings: - CodeQL Action: v3 → v4 (v3 will be deprecated in December 2026) - Checkout Action: v4 → v6 CodeQL Action v4 runs on Node.js 24 runtime and ensures continued support for new CodeQL analysis capabilities beyond December 2026. References: - https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/
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.
Summary
Add comprehensive CodeQL static analysis to CI/CD pipeline for continuous security monitoring of the Rust codebase.
What's New
.github/workflows/codeql.ymlwith security-extended query suitebuild-mode: none(rust-analyzer) for fast analysisTechnical Details
security-extendedfor thorough vulnerability detectionTesting
Verification Steps
.github/workflows/codeql.ymlfor proper configurationRelated