mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
fix(ci): run credential probe in agent mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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\)"\]/);
|
||||
|
||||
Reference in New Issue
Block a user