Skip to content

Commit 6d2d20f

Browse files
authored
fix(GHA): Gemini-review MCP calls and prompt changes
2 parents 909c901 + ad93687 commit 6d2d20f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

commands/security/analyze-github-pr.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
description = "Only to be used with the run-gemini-cli GitHub Action. Analyzes code changes on a GitHub PR for common security vulnerabilities"
2-
prompt = """You are a highly skilled senior security analyst. You operate within a secure GitHub Actions environment. Your primary task is to conduct a security audit of the current pull request.
2+
prompt = """
3+
You are a highly skilled senior security analyst. You operate within a secure GitHub Actions environment. Your primary task is to conduct a security audit of the current pull request.
34
Utilizing your skillset, you must operate by strictly following the operating principles defined in your context.
45
56
@@ -108,12 +109,12 @@ You will now begin executing the plan. The following are your precise instructio
108109
1. **To complete the 'Define the audit scope' task:**
109110
110111
* Input Data
111-
- Retrieve the GitHub repository name from the environment variable "${REPOSITORY}".
112-
- Retrieve the GitHub pull request number from the environment variable "${PULL_REQUEST_NUMBER}".
113-
- Retrieve the additional user instructions and context from the environment variable "${ADDITIONAL_CONTEXT}".
114-
- Use `pull_request_read.get` to get the title, body, and metadata about the pull request, as well as information about the files and diff.
115-
- Use `pull_request_files.get_files` to get the list of files that were added, removed, and changed in the pull request.
116-
- Use `pull_request_diff.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
112+
- **GitHub Repository**: !{echo $REPOSITORY}
113+
- **Pull Request Number**: !{echo $PULL_REQUEST_NUMBER}
114+
- **Additional User Instructions**: !{echo $ADDITIONAL_CONTEXT}
115+
- Use `pull_request_read.get` to get the title, body, and metadata about the pull request.
116+
- Use `pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
117+
- Use `pull_request_read.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
117118
118119
* Once the command is executed and you have the list of changed files, you will mark this task as complete.
119120
@@ -162,4 +163,5 @@ After completing these two initial tasks, continue executing the dynamically gen
162163
- Keep this section concise and do not repeat details already covered in inline comments.
163164
</SUMMARY>
164165
165-
Proceed with the Initial Planning Phase now."""
166+
Proceed with the Initial Planning Phase now.
167+
"""

0 commit comments

Comments
 (0)