Skip to content

code quality: add CodeQL static analysis#474

Merged
martin-belanger merged 1 commit intolinux-nvme:mainfrom
martin-belanger:codeql
Apr 6, 2026
Merged

code quality: add CodeQL static analysis#474
martin-belanger merged 1 commit intolinux-nvme:mainfrom
martin-belanger:codeql

Conversation

@martin-belanger
Copy link
Copy Markdown
Collaborator

Add a CodeQL workflow to perform static security analysis on the Python codebase. The workflow runs on push/PR to main and weekly on Tuesdays.

The Meson build runs before analysis so that all template-configured files are resolved in .build/ prior to scanning. A CodeQL config file constrains analysis to .build/ (excluding .build/subprojects/, which is nvme-cli/libnvme code) and sets PYTHONPATH so that libnvme imports are resolved for accurate taint tracking.

Add a CodeQL workflow to perform static security analysis on the Python
codebase. The workflow runs on push/PR to main and weekly on Tuesdays.

The Meson build runs before analysis so that all template-configured
files are resolved in .build/ prior to scanning. A CodeQL config file
constrains analysis to .build/ (excluding .build/subprojects/, which
is nvme-cli/libnvme code) and sets PYTHONPATH so that libnvme imports
are resolved for accurate taint tracking.

Signed-off-by: Martin Belanger <[email protected]>
@martin-belanger martin-belanger merged commit 165a42a into linux-nvme:main Apr 6, 2026
8 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.72%. Comparing base (be9d567) to head (177fbb7).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   58.72%   58.72%           
=======================================
  Files          16       16           
  Lines        2612     2612           
=======================================
  Hits         1534     1534           
  Misses       1078     1078           

☔ 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.

@martin-belanger martin-belanger deleted the codeql branch April 6, 2026 18:32
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.

1 participant