Skip to content

feat: scan source distributions for compiled code#947

Merged
LalatenduMohanty merged 1 commit intopython-wheel-build:mainfrom
tiran:scan-compiled
Mar 25, 2026
Merged

feat: scan source distributions for compiled code#947
LalatenduMohanty merged 1 commit intopython-wheel-build:mainfrom
tiran:scan-compiled

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Mar 3, 2026

The new helper function scan_compiled_extensions scans source distributions for compiled code. It detects common extensions like .so and .dylib as well as files with certain headers.

The function is designed to detect packaging issues like sdists with pre-compiled code. It is incapable of detecting supply chain attacks and malicious code.

@LalatenduMohanty
Copy link
Member

@tiran #963 has merged, we should rebase this PR.

@tiran tiran marked this pull request as ready for review March 19, 2026 05:39
@tiran tiran requested a review from a team as a code owner March 19, 2026 05:39
@tiran tiran force-pushed the scan-compiled branch 2 times, most recently from 23b0cb1 to f43f9ff Compare March 21, 2026 18:55
@LalatenduMohanty
Copy link
Member

@mergify rebase

@mergify
Copy link
Contributor

mergify bot commented Mar 24, 2026

rebase

❌ Unable to rebase: Mergify can't impersonate LalatenduMohanty

Details

User LalatenduMohanty used as bot_account is unknown. Please make sure {login} exists and has logged into the Mergify dashboard.

The new helper function `scan_compiled_extensions` scans source
distributions for compiled code. It detects common extensions like `.so`
and `.dylib` as well as files with certain headers.

The function is designed to detect packaging issues like sdists with
pre-compiled code. It is incapable of detecting supply chain attacks and
malicious code.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran
Copy link
Collaborator Author

tiran commented Mar 25, 2026

I have rebased the PR manually

@LalatenduMohanty LalatenduMohanty merged commit 0a941fd into python-wheel-build:main Mar 25, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants