From 7e4e140e1d0e2e25b27a4b4ecc40478a7ebcc256 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 21 Aug 2025 14:48:02 -0400 Subject: [PATCH 1/2] chore: add a debugger --- .github/workflows/gemini-dispatch.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index 0b193fa0f..43b61618f 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -23,6 +23,23 @@ defaults: shell: 'bash' jobs: + debugger: + if: |- + ${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }} + runs-on: 'ubuntu-latest' + steps: + - name: 'Print context for debugging' + env: + DEBUG_event_name: '${{ github.event_name }}' + DEBUG_event__action: '${{ github.event.action }}' + DEBUG_event__comment__author_association: '${{ github.event.comment.author_association }}' + DEBUG_event__issue__author_association: '${{ github.event.issue.author_association }}' + DEBUG_event__pull_request__author_association: '${{ github.event.pull_request.author_association }}' + DEBUG_event__review__author_association: '${{ github.event.review.author_association }}' + DEBUG_event: '${{ toJSON(github.event) }}' + run: |- + env | grep '^DEBUG_' + dispatch: if: |- ( From 9d9a8c92ddd3d139555713276c6052c9f26f81db Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 21 Aug 2025 14:50:15 -0400 Subject: [PATCH 2/2] Set permissions --- .github/workflows/gemini-dispatch.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index 43b61618f..560d70549 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -27,6 +27,8 @@ jobs: if: |- ${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }} runs-on: 'ubuntu-latest' + permissions: + contents: 'read' steps: - name: 'Print context for debugging' env: