ci(mantis): preserve codex action home through sudo · openclaw/openclaw@d246b3e
obviyus
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -346,6 +346,8 @@ jobs:
|
346 | 346 | run: | |
347 | 347 | set -euo pipefail |
348 | 348 | sudo useradd --create-home --shell /bin/bash codex |
| 349 | + printf '%s\n' 'Defaults env_keep += "CODEX_HOME CODEX_INTERNAL_ORIGINATOR_OVERRIDE"' | sudo tee /etc/sudoers.d/mantis-codex-env >/dev/null |
| 350 | + sudo chmod 0440 /etc/sudoers.d/mantis-codex-env |
349 | 351 | codex_home="/tmp/mantis-codex-home-${GITHUB_RUN_ID}" |
350 | 352 | sudo install -d -m 0770 -o codex -g codex "$codex_home" |
351 | 353 | sudo setfacl -m u:runner:rwx,u:codex:rwx "$codex_home" |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。