diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 21cffa4..fb8235d 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -6,6 +6,7 @@ jobs: review: name: Cassandra Review runs-on: ubuntu-latest + if: github.event.pull_request.head.repo.full_name == github.repository permissions: contents: read pull-requests: write @@ -19,6 +20,7 @@ jobs: - name: Run Cassandra AI Review uses: menny/cassandra@v0.2.0 with: + reviewer_github_token: ${{ secrets.AI_CODE_REVIEW_GH_TOKEN }} provider_api_key: ${{ secrets.GEMINI_API_KEY }} # The base branch to compare against (defaults to main) base: ${{ github.event.pull_request.base.sha }}