Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/.github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Gemini AI Code Review
on:
pull_request:
types: [opened] # This triggers the AI when a new PR is opened

jobs:
review-code:

Check warning on line 7 in .github/workflows/.github/workflows/ai-review.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ai-review.yml:7: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v4

Check failure on line 11 in .github/workflows/.github/workflows/ai-review.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 11 in .github/workflows/.github/workflows/ai-review.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ai-review.yml:11: unpinned action reference: action is not pinned to a hash (required by blanket policy)

- name: Ask Gemini to summarize
uses: google-github-actions/run-gemini-cli@v1

Check failure on line 14 in .github/workflows/.github/workflows/ai-review.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 14 in .github/workflows/.github/workflows/ai-review.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ai-review.yml:14: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
# The instruction you give the AI
prompt: "Please review the attached code changes and summarize any bugs."
# Authenticating securely via GitHub Secrets
api-key: ${{ secrets.GEMINI_API_KEY }}
Loading