Skip to content

Add CodeQL native C build scanning to storage pipeline#48098

Open
danieljurek wants to merge 4 commits into
mainfrom
djurek/storage-extension-release
Open

Add CodeQL native C build scanning to storage pipeline#48098
danieljurek wants to merge 4 commits into
mainfrom
djurek/storage-extension-release

Conversation

@danieljurek

Copy link
Copy Markdown
Member

No description provided.

@danieljurek danieljurek self-assigned this Jul 16, 2026
Copilot AI review requested due to automatic review settings July 16, 2026 18:45
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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 compiled CodeQL scanning for the storage pipeline and ensures hybrid extension packages use cibuildwheel.

Changes:

  • Wires a compiled-CodeQL pipeline parameter through shared templates.
  • Detects setup.py-defined extensions alongside pyproject.toml.
  • Routes compiled pyproject packages through cibuildwheel.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sdk/storage/ci.yml Enables compiled CodeQL for storage.
eng/pipelines/templates/stages/archetype-sdk-client.yml Forwards the CodeQL parameter.
eng/pipelines/templates/stages/1es-redirect.yml Configures compiled C/C++ scanning.
eng/tools/azure-sdk-tools/ci_tools/parsing/parse_functions.py Detects setup.py extensions for pyproject packages.
eng/tools/azure-sdk-tools/ci_tools/build.py Builds detected extensions with cibuildwheel.

# checkout happens after the injected "CodeQL Initialize" step
language: cpp
compiled:
enabled: true
if enable_wheel and setup_parsed.ext_modules:
# Use cibuildwheel for compiled extensions (respects [tool.cibuildwheel] config)
run_logged(
[sys.executable, "-vv", "-m", "cibuildwheel", "--output-dir", dist],
Comment thread sdk/storage/ci.yml
Comment on lines +42 to +43
# Enable Compiled CodeQL becuase azure-storage-extensions has C code that
# must be scanned
Comment on lines +713 to +717
if not ext_modules:
sibling_setup_py = os.path.join(package_directory, "setup.py")
if os.path.exists(sibling_setup_py):
try:
setup_py_result = parse_setup_py(sibling_setup_py)
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