Skip to content

Commit 9dbd7d5

Browse files
committed
Allow headless agent run in CI without trust prompt
Use -f with ask mode so non-interactive workflow runs are not blocked by workspace trust confirmation while preserving ask-mode behavior. Made-with: Cursor
1 parent 6c9f26e commit 9dbd7d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dependabot-cursor-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ jobs:
263263
f.write(prompt)
264264
PY
265265
266-
if ! agent --mode ask -p --output-format json < cursor_prompt.txt > cursor_output.json; then
266+
if ! agent -f --mode ask -p --output-format json < cursor_prompt.txt > cursor_output.json; then
267267
# Fallback for older CLI behavior that may require a prompt argument.
268-
agent --mode ask -p --output-format json "$(cat cursor_prompt.txt)" > cursor_output.json
268+
agent -f --mode ask -p --output-format json "$(cat cursor_prompt.txt)" > cursor_output.json
269269
fi
270270
271271
- name: Post or update PR comment

0 commit comments

Comments
 (0)