Repository navigation
Fix unnotarized macOS packaging gate - #844
GraciousGazelles wants to merge 11 commits into
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
Code Review
This pull request introduces a new unnotarized release mode for Intel macOS assets, allowing for explicitly labeled ad-hoc signed assets on both stable and prerelease channels. It adds validation to ensure the macOS minimum deployment target is exactly Monterey 12.0, updates the installation script (install_sedna_release_asset) to support the new --macos-unnotarized flag, and updates the relevant tests and documentation. Feedback was provided on the installation script to use sys.argv[1:] instead of a hardcoded slice index sys.argv[1:16] for unpacking arguments in the inline Python script to improve robustness.
| from pathlib import Path | ||
|
|
||
| work_dir, archive_name, checksum_name, metadata_name, release_tag, release_version, target, macos_preview, sbom_name, attestation_bundle_name, codex_sigstore_name, proxy_sigstore_name, require_linux_signatures, require_linux_provenance = sys.argv[1:15] | ||
| work_dir, archive_name, checksum_name, metadata_name, release_tag, release_version, target, macos_preview, macos_unnotarized, sbom_name, attestation_bundle_name, codex_sigstore_name, proxy_sigstore_name, require_linux_signatures, require_linux_provenance = sys.argv[1:16] |
There was a problem hiding this comment.
Using a fixed slice index like sys.argv[1:16] is fragile and prone to off-by-one errors if arguments are added or removed in the future. Since we are unpacking into a fixed number of variables, using sys.argv[1:] is cleaner, more robust, and Python will automatically raise a ValueError if the number of arguments does not match.
work_dir, archive_name, checksum_name, metadata_name, release_tag, release_version, target, macos_preview, macos_unnotarized, sbom_name, attestation_bundle_name, codex_sigstore_name, proxy_sigstore_name, require_linux_signatures, require_linux_provenance = sys.argv[1:]
Summary
Validation
git diff --checkDisposition
Superseded after the landed portions were incorporated through PR #845 and the remaining installer argument-forwarding repair was delivered by successor PR #847. The original branch and commit history are preserved for custody and audit; no source deletion is implied.
Successor: #847
Landed successor merge:
fdd53b26b43c468a6928f9f6baf041115cce0b88