From 7789469bd18c6df1a93115741931da9ab9de018c Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Wed, 13 May 2026 12:08:13 -0700 Subject: [PATCH] fix(bot): provide GH_TOKEN in bot-brain workflow to fix gh cli auth --- .github/workflows/gemini-cli-bot-brain.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gemini-cli-bot-brain.yml b/.github/workflows/gemini-cli-bot-brain.yml index 7b6f888f7f..5a2ce5b2e3 100644 --- a/.github/workflows/gemini-cli-bot-brain.yml +++ b/.github/workflows/gemini-cli-bot-brain.yml @@ -36,7 +36,7 @@ on: - 'issue-fixer' - 'metrics' - 'interactive' - default: auto + default: 'auto' concurrency: group: '${{ github.workflow }}-${{ github.event.issue.number || github.event.inputs.issue_number || github.ref }}' @@ -63,6 +63,7 @@ jobs: - name: 'Determine Checkout Ref' id: 'determine_ref' env: + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' ISSUE_NUMBER: '${{ github.event.issue.number || github.event.inputs.issue_number }}' run: | @@ -96,6 +97,7 @@ jobs: - name: 'Download Previous State' env: + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: | if [ "${{ github.event.inputs.clear_memory }}" = "true" ]; then @@ -124,12 +126,14 @@ jobs: - name: 'Collect Current Metrics' env: + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: 'npx tsx tools/gemini-cli-bot/metrics/index.ts' - name: 'Run Brain Phases' env: GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}' + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GEMINI_MODEL: 'gemini-3-flash-preview' GEMINI_CLI_HOME: 'tools/gemini-cli-bot' @@ -217,6 +221,7 @@ jobs: if: "${{ github.event.inputs.enable_prs == 'true' || github.event_name == 'issue_comment' || github.event.inputs.run_interactive == 'true' }}" env: GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}' + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GEMINI_MODEL: 'gemini-3-flash-preview' GEMINI_CLI_HOME: 'tools/gemini-cli-bot' @@ -291,6 +296,7 @@ jobs: - name: 'Determine Checkout Ref' id: 'determine_ref' env: + GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' ISSUE_NUMBER: '${{ github.event.issue.number || github.event.inputs.issue_number }}' run: |