Skip to content

Commit

Permalink
🔒 Added GitHub token to environment variables
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Corantin committed Oct 17, 2024
1 parent 4c9882d commit 5417d7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $GITHUB_OUTPUT
gh run view ${{ steps.review.outputs.run_id }} --log >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5417d7c

Please sign in to comment.