From 46e4eb3da6b678d480e1d2ff053cfcd937eec4aa Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Wed, 15 Jul 2026 23:34:55 -0400 Subject: [PATCH] ci: pin gadfly reusable @8eb0265 + thread dispatch pr_number [skip ci] Gitea >= 1.27 does not propagate workflow_dispatch inputs into a called workflow's github.event; the stub must pass pr_number as an explicit workflow_call input or manual dispatches die at 'PR required'. Mirrors gadfly#24. Co-Authored-By: Claude Fable 5 --- .gitea/workflows/adversarial-review.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/adversarial-review.yml b/.gitea/workflows/adversarial-review.yml index 3b52478..888373d 100644 --- a/.gitea/workflows/adversarial-review.yml +++ b/.gitea/workflows/adversarial-review.yml @@ -42,7 +42,7 @@ jobs: # and cache the reusable-workflow ref, so a moved v1 tag keeps resolving to the # stale cached copy. A unique sha forces a cache miss → fresh fetch. Bump this # sha to adopt central swarm changes. - uses: steve/gadfly/.gitea/workflows/review-reusable.yml@3664ce858da1e7ba949baf675f7f3b249b8e7998 + uses: steve/gadfly/.gitea/workflows/review-reusable.yml@8eb0265e759e8c37ade8eaa8cb4b3aa9c7a5a169 # Least privilege: forward only the review secrets (not `secrets: inherit`, # which would expose every repo secret). GITEA_TOKEN is the automatic token. secrets: @@ -53,3 +53,6 @@ jobs: with: # Consumer-specific allow-list; everything else is inherited. allowed_users: "steve,fizi,dazed" + # Gitea >= 1.27 does not propagate dispatch inputs into a called workflow's + # github.event — thread the PR number explicitly (empty on non-dispatch events). + pr_number: ${{ github.event.inputs.pr_number }}