feat(ci): add GitHub CodeQL workflow for automated C and Go security analysis - #228
feat(ci): add GitHub CodeQL workflow for automated C and Go security analysis#228harmeetsingh11 wants to merge 1 commit into
Conversation
Signed-off-by: harmeetsingh11 <itsharmeetsingh1@gmail.com>
|
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. |
|
Hi @btwshivam, While validating the CodeQL workflow, I noticed that the
After reviewing the repository structure, I couldn't identify a standalone C/C++ build entry point (e.g. Before changing the workflow, I'd like to confirm the intended approach. Is there an existing build command or script used to compile the eBPF C sources that should be executed as a manual CodeQL build step? If the project currently doesn't expose a reproducible C compilation path in CI, I can:
I'd prefer to align the workflow with the project's actual build process rather than introducing build steps that don't reflect the repository's CI. |

Related issue
Closes #219
Summary
This pull request introduces a dedicated GitHub Actions workflow to integrate CodeQL-based static analysis into the repository's CI pipeline for both C and Go codebases.
The workflow enables automated security scanning across pull requests, direct pushes, scheduled executions, and manual runs, allowing potential vulnerabilities and unsafe coding patterns to be identified before they reach the default branch.
What changed
.github/workflows/codeql.ymlc-cppgopushpull_requestworkflow_dispatchcron)Why this change
The repository already performs build and automation tasks, but security-focused static analysis was not part of the development workflow.
Introducing CodeQL helps shift vulnerability detection earlier into the review process by automatically inspecting every change for language-specific security issues and common implementation mistakes.
For C projects, this provides additional coverage for memory-safety and resource-management issues, while Go analysis helps identify insecure coding patterns and reliability concerns.
Expected impact
After this change:
Validation
The workflow has been verified to:
Notes
This change is intentionally isolated to the CI configuration and does not modify application source code or runtime behavior.
Manual Verification
Checklist