Skip to content

Add CodeQL config file to only run the scan for production code#5231

Open
anupsdf wants to merge 1 commit intostellar:masterfrom
anupsdf:codeql
Open

Add CodeQL config file to only run the scan for production code#5231
anupsdf wants to merge 1 commit intostellar:masterfrom
anupsdf:codeql

Conversation

@anupsdf
Copy link
Copy Markdown
Contributor

@anupsdf anupsdf commented Apr 17, 2026

what

Add CodeQL config file to only run the scan for production code.

why

So we can ignore non-production files in the scan and focus on the important ones.

Copilot AI review requested due to automatic review settings April 17, 2026 18:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a CodeQL workflow plus a repository CodeQL configuration intended to focus scans on “production” source code and ignore tests / tooling directories.

Changes:

  • Added a scheduled + manual CodeQL GitHub Actions workflow running CodeQL for C/C++, Rust, Python, and Actions.
  • Added a CodeQL config file that restricts scanned paths to src/ and ignores many test and non-production directories.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/codeql.yml Introduces the CodeQL scanning workflow and points it at the repo CodeQL config file.
.github/codeql/codeql-config.yml Defines paths / paths-ignore to narrow CodeQL results to production-relevant areas.

Comment thread .github/codeql/codeql-config.yml Outdated
Comment thread .github/codeql/codeql-config.yml Outdated
Comment thread .github/workflows/codeql.yml
@anupsdf anupsdf force-pushed the codeql branch 2 times, most recently from 31bb440 to 8775680 Compare April 17, 2026 21:30
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