Skip to content

Commit 535341d

Browse files
committed
test(hermes): tighten stale verifier allowlist
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
1 parent 32cf61c commit 535341d

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/verify-hermes-stale-openclaw-image.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ require_safe_image_ref() {
5252
if [[ "$ref" == ghcr.io/nvidia/nemoclaw/hermes-sandbox-base* ]]; then
5353
fail "Hermes base image ref is not an allowed Hermes base form: $ref"
5454
fi
55-
if [[ ! "$ref" =~ ^[A-Za-z0-9][A-Za-z0-9._/-]*([:@][A-Za-z0-9._:-]+)?$ ]]; then
56-
fail "Hermes base image ref is not a supported Docker reference: $ref"
57-
fi
5855
fail "Hermes base image ref is outside the allowed Hermes base images: $ref"
5956
}
6057

test/hermes-stale-openclaw-guard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("Hermes stale OpenClaw guardrails", () => {
7878
fs.mkdirSync(fakeBin);
7979
fs.writeFileSync(
8080
path.join(fakeBin, "docker"),
81-
"#!/usr/bin/env bash\nprintf 'docker %s\\n' \"$*\" >> \"$NEMOCLAW_FAKE_DOCKER_LOG\"\nexit 99\n",
81+
'#!/usr/bin/env bash\nprintf \'docker %s\\n\' "$*" >> "$NEMOCLAW_FAKE_DOCKER_LOG"\nexit 99\n',
8282
{ mode: 0o700 },
8383
);
8484

0 commit comments

Comments
 (0)