From 5417d7c327eb12b351e053ead2d1646ed7e671a5 Mon Sep 17 00:00:00 2001 From: Corantin Date: Thu, 17 Oct 2024 11:43:26 -0400 Subject: [PATCH] :lock: Added GitHub token to environment variables - Introduced a new environment variable, GITHUB_TOKEN, in the AI code review workflow - This token is used for authentication during the 'Get Gemini step log' job --- .github/workflows/ai-code-review.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml index 3bec16ba..1121a0d6 100644 --- a/.github/workflows/ai-code-review.yml +++ b/.github/workflows/ai-code-review.yml @@ -106,6 +106,8 @@ jobs: - name: Get Gemini step log if: steps.review.outcome == 'failure' id: get-gemini-log + env: + GITHUB_TOKEN: ${{ github.token }} run: | echo "gemini_log<> $GITHUB_OUTPUT gh run view ${{ steps.review.outputs.run_id }} --log >> $GITHUB_OUTPUT