Skip to content

Commit

Permalink
build: add llm reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Feb 6, 2025
1 parent 2706332 commit 8924f95
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,28 @@ jobs:
with:
channel: ${{ needs.publish-dev.outputs.devChannel }}
secrets: inherit

gemini-code-review:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get PR Details
id: pr
run: |
PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }})
echo "head_sha=$(echo $PR_JSON | jq -r .head.sha)" >> $GITHUB_OUTPUT
echo "base_sha=$(echo $PR_JSON | jq -r .base.sha)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: truongnh1992/[email protected]

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'CI' step
Uses Step
uses 'truongnh1992/gemini-ai-code-reviewer' with ref 'v6.2.0', not a pinned commit hash
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
INPUT_EXCLUDE: "*.md,*.txt,package-lock.json,*.yml,*.yaml"

0 comments on commit 8924f95

Please sign in to comment.