fix(ci): run credential probe in agent mode

This commit is contained in:
bincxz
2026-07-27 14:35:49 +08:00
parent c33ae22965
commit ae4400cdb8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1103,7 +1103,7 @@ jobs:
' "$smoke_dir/.cursor"
sudo --preserve-env=HOME,RUNNER_TEMP,GITHUB_WORKSPACE \
"$RUNNER_TEMP/cursor-agent-authenticated" \
-p --mode=ask --trust --sandbox enabled --model auto --output-format text \
-p --trust --sandbox enabled --model auto --output-format text \
--workspace "$smoke_dir" \
"Run exactly one shell command: node $RUNNER_TEMP/cursor-auth-probe.cjs. Then reply with its output verbatim. Do not use any other tool." \
> .cursor-runtime/agent-smoke-raw.txt
+1 -1
View File
@@ -1788,7 +1788,7 @@ test('workflow keeps sandbox probes credential-free and runs an authenticated ag
assert.doesNotMatch(authenticatedSmokeStep, /CURSOR_API_KEY|CURSOR_AUTH_TOKEN/);
assert.match(
authenticatedSmokeStep,
/"\$RUNNER_TEMP\/cursor-agent-authenticated" \\\n\s+-p --mode=ask --trust/,
/"\$RUNNER_TEMP\/cursor-agent-authenticated" \\\n\s+-p --trust/,
);
assert.doesNotMatch(smokeJob, /--api-key/);
assert.match(smokeJob, /allow: \["Shell\(node\)"\]/);