You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `exit-code` | Raw exit code from the `cursor-agent` process. |
44
+
| `cache-hit` | `"true"` if the Cursor CLI install was restored from cache. |
45
45
46
46
---
47
47
@@ -91,7 +91,7 @@ jobs:
91
91
with:
92
92
api-key: ${{ secrets.CURSOR_API_KEY }}
93
93
prompt: "Generate a changelog entry for the latest commit."
94
-
cursor-version: "1.2.3"
94
+
cursor-version: "2026.03.20-44cb435"
95
95
```
96
96
97
97
### Read-write permissions (agent can modify files)
@@ -107,12 +107,21 @@ jobs:
107
107
108
108
---
109
109
110
+
## Version Resolution
111
+
112
+
`cursor-version: latest` resolves to the current published Cursor lab build before download. The action first checks Cursor's lab `latest-version` endpoint and, if that endpoint is unavailable or returns an access error, falls back to parsing the official [`https://cursor.com/install`](https://cursor.com/install) installer script.
113
+
114
+
If you want reproducible installs, pin `cursor-version` to an exact lab build id such as `2026.03.20-44cb435`. Values like `1.2.3` are not published Cursor lab artifact versions and will fail to download.
115
+
116
+
---
117
+
110
118
## Caching
111
119
112
-
The action caches the Cursor CLI binary across jobs using `@actions/cache`. The cache key includes the platform, architecture, and resolved version, so:
120
+
The action caches the extracted Cursor CLI package across jobs using `@actions/cache`. The cache key includes the platform, architecture, and resolved version, so:
113
121
114
122
- `latest`resolves to a concrete version before caching — it won't re-download on every run once cached.
115
-
- Pinning a version (e.g. `1.2.3`) gives you a stable, reproducible cache hit every time.
123
+
- Pinning a version (e.g. `2026.03.20-44cb435`) gives you a stable, reproducible cache hit every time.
124
+
- The full installed package is cached, not just the `cursor-agent` launcher.
0 commit comments