Skip to content

Commit

Permalink
Update code-review.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tnvnfdla1214 authored Feb 28, 2025
1 parent 48b51db commit d0cde08
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: Reusable Code Review with Google Gemini

on:
workflow_call:
inputs:
secrets:
google_api_key:
required: true
type: string
github_token:
required: true
type: string

jobs:
review:
Expand All @@ -21,7 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ inputs.github_token }}
token: ${{ secrets.github_token }}

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -34,5 +32,6 @@ jobs:
- name: Run code review script
run: python .github/workflows/review_gemini.py
env:
GOOGLE_API_KEY: ${{ inputs.google_api_key }}
GITHUB_TOKEN: ${{ inputs.github_token }}
GOOGLE_API_KEY: ${{ secrets.google_api_key }}
GITHUB_TOKEN: ${{ secrets.github_token }}

0 comments on commit d0cde08

Please sign in to comment.