Commit 3f359b3
fix(phase4): set the default keychain for the macOS runner job (#78)
* fix(phase4): set the default keychain for the macOS runner job
notarytool resolves its credential profile through the session DEFAULT
keychain, but a launchd runner job has no default keychain set, so
notarization failed with "No Keychain password item found for profile" even
though code signing (which uses the search list) succeeded. After the hook's
trust validation passes, set the dedicated account's login keychain as the
default and search keychain and unlock it, on macOS only.
The keychain password is read from a machine-local file owned by the runner
account ($HOME/.config/1helm/mac-keychain-password); it is never committed to
this repository or exported into the job environment. No sudo, no elevation.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(phase4): read the root-owned OCI image store with sudo in Linux acceptance
The retained channel-image verification checked
/var/lib/1helm-oci-v1/shared-images/sha256/<digest> without sudo, but
install-oci-runtime.sh creates that store root-owned and mode 0700. The
ordinary runner user cannot traverse it, so the `[[ -d ... && sha256 ... ]]`
assertion always failed after an otherwise successful clean install — the exact
silent failure the new ERR trap pinpointed at this line. The adjacent state
checks already use sudo; this one was the outlier.
Run the directory test and the image digest read under sudo, matching the
store's ownership. No product change; acceptance-script only.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Joseph Yaksich <gitcommit90@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent b6c17eb commit 3f359b3
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments