From 7cf7ad6ba73afc6694df516d20bfdb8c1ba1c548 Mon Sep 17 00:00:00 2001 From: Felipe Lucero Date: Sun, 11 Oct 2026 15:52:37 -0300 Subject: [PATCH] Probe: what may GITHUB_TOKEN do to reviews on a protected base Temporary, not for merge. Measures three things the auto-dismiss vs judge decision turns on: whether the bot can dismiss a review it authored, whether branch protection blocks that, and whether the bot can submit APPROVE at all. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/probe-review-dismissal.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/probe-review-dismissal.yaml diff --git a/.github/workflows/probe-review-dismissal.yaml b/.github/workflows/probe-review-dismissal.yaml new file mode 100644 index 0000000..456218f --- /dev/null +++ b/.github/workflows/probe-review-dismissal.yaml @@ -0,0 +1,63 @@ +# TEMPORARY probe. Not for merge — deleted with its branch once it has run. +# Answers three questions about what GITHUB_TOKEN may do to reviews on a PR +# targeting a PROTECTED branch, which is the case every connector repo is in: +# 1. can github-actions[bot] submit REQUEST_CHANGES? (known yes; baseline) +# 2. can it dismiss a CHANGES_REQUESTED it authored? (the auto-dismiss option) +# 3. can it submit APPROVE? (what judge mode needs) +name: probe-review-dismissal +on: + pull_request: + types: [opened, synchronize] +permissions: + contents: read + pull-requests: write +jobs: + probe: + if: startsWith(github.head_ref, 'felipe/probe-review-dismissal') + runs-on: ubuntu-latest + steps: + - name: Probe review verbs + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR: ${{ github.event.pull_request.number }} + REPO: ${{ github.repository }} + SHA: ${{ github.event.pull_request.head.sha }} + shell: bash + run: | + set +e + probe() { # probe