Repository navigation
Description
What
.github/actions/setup-macos-codesigning/action.yaml carries four multi-line run: steps, so ci-lint precheck reports four GEN-005 approved exceptions for that path (ci.toml, block at the setup-macos-codesigning entry). The Python-port sweep has already gone through the sibling composite actions (compatibility-validator #2692, services-validator #2777-era, flatpak-manifest-validator, qt-xml-validator, generate-docs, check-changes, and run-swift-format is in flight as #2792); this action is the same shape and is still shell.
Findings on origin/master (ci-lint precheck, pin a1917ce7…, header 5 violation(s), 416 approved exception(s), 10 needs_review):
runs.steps[0]— the non-macOS runner guard (shell: bash,if: runner.os != 'macOS')runs.steps[1]—macOS Code Signing ✍️(id: codesign, zsh): decodes the PKCS12, creates/unlocks the temporary keychain, imports the certificate, setsset-key-partition-list, and writeshaveCodesignIdent/codesignIdent/codesignTeam/MACOS_KEYCHAIN_PASSWORDruns.steps[2]—Provisioning Profile 👤(id: provisioning, zsh): decodes the profile,security cms -D,plutil -extract UUID/TeamIdentifier.0, and copies it to~/Library/MobileDevice/Provisioning Profiles/<uuid>.provisionprofileruns.steps[3]—Notarization 🧑💼(id: notarization, zsh): setshaveNotarizationUserfrom the presence of the two credentials
runs.steps[4..8] are uses: steps / with: inputs and are not findings.
Fix
One module, ci/setup_macos_codesigning.py (#!/usr/bin/env -S uv run --script), one subcommand per step, each step a single uv run call, mirroring the merged compatibility-validator port (#2692):
- a pinned
astral-sh/setup-uvstep at the top of the action — the callers (analyze-project.yaml,build-project.yaml,release-rust.yaml) install nothing before it — with the samesave-cache: ${{ github.ref == 'refs/heads/master' }}expression and the CACHE-013cache-suffixpr-<N>expression the sibling ports use, so the new step adds no CACHE-013 finding; ci/setup_macos_codesigning.py guard(the action's ownif: runner.os != 'macOS'still selects it, exit 2);ci/setup_macos_codesigning.py codesign— same env inputs (MACOS_SIGNING_*,MACOS_KEYCHAIN_PASSWORD), samesecurityargv, the same random keychain password when one is not supplied, the same$GITHUB_OUTPUT/$GITHUB_ENVlines, and the same team-id rule (${${IDENTITY##* }//(\(|\))/}— everything after the last space, parentheses removed);ci/setup_macos_codesigning.py provisioning(if:stillfromJSON(steps.codesign.outputs.haveCodesignIdent)) and… notarization, writing the same outputs;ci/test_setup_macos_codesigning.pyas the offline pin: load the module by path, stubsecurity/plutil/base64onPATHto record argv, assert the keychain/import/partition argv, the outputs each branch writes (credentials present and absent), and the team-id transform, plus a static pin that the action's four steps are singleuv runcalls and that theci.tomlGEN-005 block for this path is gone.
Why it is safe to change
The action's signing path only runs when the release credentials are configured; on PR runs the inputs are empty and the else branch writes haveCodesignIdent=false, so PR CI exercises the port's no-credentials path on every macOS job that calls it. The offline test covers the credential-present argv and outputs with stubs, which is the only part Linux cannot run. RED is the offline test (module absent, ci.toml block present); GREEN is the module plus the action and ci.toml edits, with ci-lint precheck moving 416 → 412 approved exceptions and no other count moving.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 28, 2026
Claiming: investigation — the four GEN-005 findings are enumerated in the issue body, so this is the port itself, not an open question.
Plan (one PR, from
origin/master):ci/test_setup_macos_codesigning.py— module absent,ci.tomlGEN-005 block for this path still present.ci/setup_macos_codesigning.py(guard/codesign/provisioning/notarization), the action's four steps become oneuv runcall each, a pinnedastral-sh/setup-uvstep at the top of the action, and theci.tomlblock deleted.uv run --no-project ci/test_setup_macos_codesigning.py,uv run ci/local_gate.py --only self-test, andci-lint precheck416 -> 412 approved exceptionswith no other count moving.First PR today.
zackees commentedon Oct 28, 2026
/ready
Scope is settled (four enumerated findings in one action, one module, one offline test), so this is Ready rather than an open investigation.
zackees commentedon Oct 28, 2026
Claiming: the port (single PR,
infra/2794-setup-macos-codesigning-python)RED
ci/test_setup_macos_codesigning.pyfirst, then the module, the action edit and theci.tomlblock deletion.zackees commentedon Oct 28, 2026
Port opened as #2795 (
infra/2794-setup-macos-codesigning-python).f3e84762d:ci/test_setup_macos_codesigning.py, 18 cases; fails on master because the module is absent (failures=18, errors=4) and theci.tomlblock is present.f3f448128:ci/setup_macos_codesigning.py(guard/codesign/provisioning/notarization), the action's fourrun:steps are oneuv run --no-project --scriptcall each, a pinnedastral-sh/setup-uvstep added above the guard, and the GEN-005[[exceptions]]block deleted.ci-lint precheck:5 violation(s), 416 approved exception(s), 10 needs_review->5 violation(s), 412 approved exception(s), 10 needs_review, no other count moving.uv run python -m unittest ci.test_setup_macos_codesigningOK,ci/local_gate.py --only self-testok,./lintok (37.5 s).test(ci): pin the macOS code-signing action as Python calls (#2794)
ci(#962): call the macOS code-signing action's steps as Python (#2794)
zackees commentedon Oct 28, 2026
Closing: #2795 merged on master at 13:48Z (ci(#962): call the macOS code-signing action steps as Python), so the four GEN-005 exceptions for .github/actions/setup-macos-codesigning/action.yaml are gone from ci.toml. Nothing else was outstanding.
ci(obs-rust#962): call the macOS code-signing action steps as Python (o…