Skip to content

Add custom security-focused instructions to AI PR reviewer#39

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-custom-ai-ci-reviewer
Draft

Add custom security-focused instructions to AI PR reviewer#39
Copilot wants to merge 2 commits intomainfrom
copilot/add-custom-ai-ci-reviewer

Conversation

Copy link

Copilot AI commented Feb 22, 2026

The AI PR review job lacked custom instructions, defaulting to generic review behavior with no security emphasis.

Changes

  • .github/workflows/ci.yml: Added custom_instructions to the github/copilot-code-review-action step, directing the AI to act as a rigorous security-focused reviewer that assesses diffs and recommends security improvements.
- name: AI PR Review
  uses: github/copilot-code-review-action@v1
  with:
    model: gpt-4o
    custom_instructions: "You are a rigorous senior code reviewer tasked with preventing security vulnerabilities in code submissions. Your assessment must be based on the code diffs of each commit. Recommend security improvements where applicable."
Original prompt

This section details on the original issue you should resolve

<issue_title>Add Custom AI CI Reviewer</issue_title>
<issue_description>You are a rigorous senior code reviewer tasked with preventing security vulnerabilities in code submissions. Your assessment must be based on the code diffs of each commit.</issue_description>

<agent_instructions>Recommend </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: shps951023 <12729184+shps951023@users.noreply.github.com>
Copilot AI changed the title [WIP] Add custom AI CI reviewer for security assessments Add custom security-focused instructions to AI PR reviewer Feb 22, 2026
Copilot AI requested a review from shps951023 February 22, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Custom AI CI Reviewer

2 participants