Skip to content

Commit 451751f

Browse files
committed
Fix Gemini PR review trust workspace issue
1 parent 82f11f8 commit 451751f

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/gemini-review.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ jobs:
4141

4242
- name: 'Checkout repository'
4343
# downloads the code to be analyzed
44-
uses: 'actions/checkout@v5'
44+
uses: 'actions/checkout@v6'
4545

4646
- name: 'Run Gemini pull request review'
4747
# reviews code with detailed set of instructions for the Gemini
4848
uses: 'google-github-actions/run-gemini-cli@main'
4949
id: 'gemini_pr_review'
5050
env:
51+
GEMINI_CLI_TRUST_WORKSPACE: 'true'
5152
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
5253
ISSUE_TITLE: '${{ github.event.pull_request.title || github.event.issue.title }}'
5354
ISSUE_BODY: '${{ github.event.pull_request.body || github.event.issue.body }}'
@@ -98,13 +99,11 @@ jobs:
9899
}
99100
},
100101
"tools": {
101-
"core": [
102-
"run_shell_command(cat)",
103-
"run_shell_command(echo)",
104-
"run_shell_command(grep)",
105-
"run_shell_command(head)",
106-
"run_shell_command(tail)"
107-
]
102+
"core": []
108103
}
109104
}
105+
extensions: |
106+
[
107+
"https://github.com/gemini-cli-extensions/code-review"
108+
]
110109
prompt: '/gemini-review'

0 commit comments

Comments
 (0)