ci: use CURSOR_PREFERRED_MODEL secret instead of hardcoded model#33
Merged
masnwilliams merged 1 commit intomainfrom Mar 23, 2026
Merged
ci: use CURSOR_PREFERRED_MODEL secret instead of hardcoded model#33masnwilliams merged 1 commit intomainfrom
masnwilliams merged 1 commit intomainfrom
Conversation
Replace hardcoded --model gpt-5.3-codex-high with
--model ${{ secrets.CURSOR_PREFERRED_MODEL }} so the model
can be changed without a code commit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| - Even if no coverage gaps are found, still create a PR for the SDK version bump | ||
| - Ensure code compiles before pushing | ||
| " --model gpt-5.3-codex-high --force --output-format=text | ||
| " --model ${{ secrets.CURSOR_PREFERRED_MODEL }} --force --output-format=text |
There was a problem hiding this comment.
Empty model flag if secret is unset
Medium Severity
If the CURSOR_PREFERRED_MODEL secret is not configured (or is later removed), ${{ secrets.CURSOR_PREFERRED_MODEL }} silently evaluates to an empty string in GitHub Actions. This causes --model to receive no value, likely making the CLI misinterpret --force as the model name or error out. There's no default fallback or validation to prevent this silent failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
--model gpt-5.3-codex-highin theupdate-cli-coverage.ymlworkflow with--model ${{ secrets.CURSOR_PREFERRED_MODEL }}Test plan
CURSOR_PREFERRED_MODELsecret is set in the repo settingsNote
Low Risk
Low risk: a small CI workflow change that only affects which model
cursor-agentuses, with no production code or data-path changes.Overview
Updates the
Update CLI CoverageGitHub Actions workflow to stop hardcoding thecursor-agent--modelvalue and instead read it from theCURSOR_PREFERRED_MODELrepo secret, allowing model changes without code edits.Written by Cursor Bugbot for commit 95e010b. This will update automatically on new commits. Configure here.