Skip to content

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

Merged
graydon merged 1 commit into
stellar:masterfrom
anupsdf:codeql
May 30, 2026
Merged

graydon merged 1 commit into
stellar:masterfrom
anupsdf:codeql

Conversation

@anupsdf

@anupsdf anupsdf commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Resolved
Comment thread .github/codeql/codeql-config.yml Resolved
Comment thread .github/workflows/codeql.yml Resolved
@anupsdf
anupsdf force-pushed the codeql branch 2 times, most recently from 31bb440 to 8775680 Compare April 17, 2026 21:30
@graydon
graydon added this pull request to the merge queue May 30, 2026
Merged via the queue into stellar:master with commit f9abf32 May 30, 2026
53 checks passed
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.

3 participants