Skip to content

Add CodeQL workflow with manual c-cpp build#355

Open
jensens wants to merge 3 commits intozopefoundation:masterfrom
bluedynamics:fix-codeql-cpp-build
Open

Add CodeQL workflow with manual c-cpp build#355
jensens wants to merge 3 commits intozopefoundation:masterfrom
bluedynamics:fix-codeql-cpp-build

Conversation

@jensens
Copy link
Member

@jensens jensens commented Feb 17, 2026

The default CodeQL setup's c-cpp autobuild fails because the runner's setuptools is too old for the PEP 639 license format (license = "ZPL-2.1") in pyproject.toml.

Adds a custom workflow with manual build mode for c-cpp that upgrades setuptools before building. Uses codeql-action v4 (v3 is deprecated Dec 2026).

⚠️ Important: A repo admin must disable the default CodeQL setup in Settings > Code security before merging this PR, otherwise the two configurations conflict ("CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled").

Fixes #354

@jensens jensens requested review from dataflake and icemac February 17, 2026 23:29
@icemac
Copy link
Member

icemac commented Feb 18, 2026

@jensens Do you see a chance to fix the underlying problem?

@jensens
Copy link
Member Author

jensens commented Feb 18, 2026

@jensens Do you see a chance to fix the underlying problem?

The automatic/default setting under the Settings Tab does not support pyproject.toml - in specific the new way to declare metadata. So, in fact by replicating the feature in a custom file is the fix of the underlying problem. Unless GitHub upgraded its defaults. With the file it does exactly the same as before, but using newer versions.

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.

CodeQL c-cpp analysis failing since Nov 2025

2 participants