Skip to content

Commit 10b8276

Browse files
committed
fix(ci): let trusted Telegram QA stage runtime
1 parent 353c05d commit 10b8276

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/workflows/openclaw-release-telegram-qa.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,12 +1230,11 @@ jobs:
12301230
sudo chown -R root:root "$CANDIDATE_ROOT"
12311231
sudo chmod -R go-w "$CANDIDATE_ROOT"
12321232
sudo chmod -R a+rX "$CANDIDATE_ROOT"
1233-
# QA plugin runtime staging uses .artifacts/qa-runtime below its repo root.
1234-
# Preserve the frozen tree while granting the isolated SUT this one scratch directory.
1233+
# The trusted runner stages the QA runtime here before the isolated SUT reads it.
12351234
candidate_artifacts_dir="${CANDIDATE_ROOT}/.artifacts"
1236-
sudo install -d -o "$sut_uid" -g "$sut_gid" -m 0700 "$candidate_artifacts_dir"
1237-
[[ "$(stat -c '%F:%a:%u:%g' "$candidate_artifacts_dir")" == "directory:700:${sut_uid}:${sut_gid}" ]]
1238-
sudo install -d -o "$sut_uid" -g "$sut_gid" -m 0700 "${candidate_artifacts_dir}/qa-runtime"
1235+
sudo install -d -o "$runner_uid" -g "$runner_gid" -m 0755 "$candidate_artifacts_dir"
1236+
[[ "$(stat -c '%F:%a:%u:%g' "$candidate_artifacts_dir")" == "directory:755:${runner_uid}:${runner_gid}" ]]
1237+
sudo install -d -o "$runner_uid" -g "$runner_gid" -m 0755 "${candidate_artifacts_dir}/qa-runtime"
12391238
evidence_relative=".trusted-qa-evidence/release-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
12401239
evidence_root="${CANDIDATE_ROOT}/${evidence_relative}"
12411240
boundary_evidence_dir="${evidence_root}/process-boundary"
@@ -2052,7 +2051,7 @@ jobs:
20522051
! -w "$CANDIDATE_ROOT/dist/index.js" &&
20532052
-r "${OPENCLAW_CONFIG_PATH:?}" &&
20542053
! -w "$OPENCLAW_CONFIG_PATH" ]]
2055-
[[ -d "${CANDIDATE_ARTIFACTS_DIR:?}" && -w "$CANDIDATE_ARTIFACTS_DIR" ]]
2054+
[[ -d "${CANDIDATE_ARTIFACTS_DIR:?}" && -r "$CANDIDATE_ARTIFACTS_DIR" && -x "$CANDIDATE_ARTIFACTS_DIR" && ! -w "$CANDIDATE_ARTIFACTS_DIR" ]]
20562055
for writable_path in \
20572056
"${OPENCLAW_QA_TEMP_ROOT:?}/workspace" \
20582057
"${OPENCLAW_HOME:?}" \

0 commit comments

Comments
 (0)