Skip to content

Commit e8d96c4

Browse files
authored
Merge branch 'main' into dependabot/docker/golang-1.25-alpine
2 parents 71b63b7 + ad694cc commit e8d96c4

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

.github/workflows/cursor.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Cursor Code Review
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize, reopened, ready_for_review]
66

7+
# Prevent multiple reviews running simultaneously on the same PR
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
712
permissions:
813
pull-requests: write
914
contents: read
@@ -12,6 +17,7 @@ permissions:
1217
jobs:
1318
code-review:
1419
runs-on: ubuntu-latest
20+
timeout-minutes: 15
1521
# Skip automated code review for draft PRs
1622
if: github.event.pull_request.draft == false
1723
steps:
@@ -20,12 +26,21 @@ jobs:
2026
with:
2127
fetch-depth: 0
2228
ref: ${{ github.event.pull_request.head.sha }}
29+
persist-credentials: false # Security: don't persist creds when checking out PR code
2330

2431
- name: Install Cursor CLI
2532
run: |
2633
curl https://cursor.com/install -fsS | bash
2734
echo "$HOME/.cursor/bin" >> $GITHUB_PATH
2835
36+
- name: Verify Cursor CLI installation
37+
run: |
38+
if ! command -v cursor-agent &> /dev/null; then
39+
echo "::error::cursor-agent not found after installation"
40+
exit 1
41+
fi
42+
cursor-agent --version || true
43+
2944
- name: Configure git identity
3045
run: |
3146
git config user.name "Cursor Agent"
@@ -34,7 +49,7 @@ jobs:
3449
- name: Perform automated code review
3550
env:
3651
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
37-
MODEL: gpt-5-codex
52+
MODEL: gpt-5.1-codex
3853
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3954
BLOCKING_REVIEW: ${{ vars.BLOCKING_REVIEW || 'false' }}
4055
run: |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/tuannvm/mcp-trino
33
go 1.24.9
44

55
require (
6-
github.com/mark3labs/mcp-go v0.42.0
6+
github.com/mark3labs/mcp-go v0.43.1
77
github.com/trinodb/trino-go-client v0.328.0
88
github.com/tuannvm/oauth-mcp-proxy v1.0.0
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
111111
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
112112
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
113113
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
114-
github.com/mark3labs/mcp-go v0.42.0 h1:gk/8nYJh8t3yroCAOBhNbYsM9TCKvkM13I5t5Hfu6Ls=
115-
github.com/mark3labs/mcp-go v0.42.0/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw=
114+
github.com/mark3labs/mcp-go v0.43.1 h1:WXNVd+bRM/7mOzCM9zulSwn/s9YEdAxbmeh9LoRHEXY=
115+
github.com/mark3labs/mcp-go v0.43.1/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw=
116116
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
117117
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
118118
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=

0 commit comments

Comments
 (0)