Describe the Bug
I’m trying to run the new Cursor CLI in a Github Actions workflow. But I’m getting an error when it runs:
Run cursor-agent -p "$CURSOR_PROMPT" --output-format text --model sonnet-4
cursor-agent -p "$CURSOR_PROMPT" --output-format text --model sonnet-4
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
CURSOR_PROMPT: You are a helpful assistant that can fix CI failures.
CI failed on the `main` branch and you need to fix it. The workflow
"Manual Test" failed on commit 513657b6b21ec3c4f2d60229bced8e5c1bb14fed.
The complete CI output from the failed jobs has been saved to the file
`ci_output.txt` in the repository root. You can read this file to analyze
the failure details.
The failure might be e.g. a flaky test or a lint error. Investigate
the changes in the commit, and then fix the failure (whether it was
caused by those changes or not).
CURSOR_API_KEY: ***
25h
Error: Process completed with exit code 1.
Steps to Reproduce
This is the CI step that fails:
- name: Run Cursor Agent
shell: bash
env:
CURSOR_PROMPT: ${{ steps.prompt.outputs.prompt }}
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
run: |
cursor-agent -p "$CURSOR_PROMPT" --output-format text --model sonnet-4
Expected Behavior
Cursor agent runs!
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Latest. Cursor is installed via
- name: Install Cursor CLI
shell: bash
run: |
curl https://cursor.com/install -fsS | bash
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
Does this stop you from using Cursor
Yes - Cursor is unusable