mirror of
https://github.com/openai/codex.git
synced 2026-12-06 01:10:58 +00:00
Backport MXC PowerShell fix and safe alpha publishing to 0.159.0-alpha.12 (#50061)
Backport two reviewed upstream fixes onto the exact content parent of 0.159.0-alpha.12 for the desktop 260930 train: - Public #49019 (internal #10589),4fd5745e84: reuse unpackaged PowerShell fallback for local MXC. Remote, unsandboxed, restricted-token handling and elevated-only -NoProfile behavior are preserved. - Public #49704,5602705c96: keep newer npm alpha pointers unchanged when publishing an older frozen hotfix. The existing OIDC publisher uses version-specific tags; registry lookup failure aborts publication. No new credentials or permission changes. Both patches apply cleanly and match their upstream patch IDs. Eight files total, +360/-71; no extra dependencies or unrelated product changes. Frozen base:1cc7e23612. Intended publication: 0.159.0-alpha.12.1 through the exact-SHA-guarded branch publisher. Validation: just fmt and whitespace checks passed; all 50 focused PowerShell library tests passed; all 17 release/tag-selection tests passed. Initial product-only head passed all three production build checks (Linux/macOS/Windows); updated-head checks are pending. Native MXC execution is not claimed by Linux validation. The included Windows integration test skips if MXC is unavailable. Initial CI manifest-policy failure reproduces on the exact frozen base; Codespell and cargo-shear failures concern unchanged files. No unrelated lint fixes included. --------- Co-authored-by: Ian MacLeod <imac@openai.com>
This commit is contained in:
co-authored by
Ian MacLeod
parent
1cc7e23612
commit
51215e9f88
@@ -1778,6 +1778,11 @@ jobs:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
@@ -1898,6 +1903,12 @@ jobs:
|
||||
;;
|
||||
esac
|
||||
|
||||
# The workflow concurrency group holds the lock from this lookup
|
||||
# through publish, including concurrent alpha/hotfix release runs.
|
||||
if [[ "${NPM_TAG}" == "alpha" ]]; then
|
||||
tag="$(python3 .github/scripts/npm_alpha_tag.py "${tarball}" "${VERSION}" "${tag}")"
|
||||
fi
|
||||
|
||||
publish_cmd=(npm publish "${GITHUB_WORKSPACE}/${tarball}")
|
||||
if [[ -n "${tag}" ]]; then
|
||||
publish_cmd+=(--tag "${tag}")
|
||||
|
||||
Reference in New Issue
Block a user