]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Allow /delta on fork pull requests
authorNathan Moin Vaziri <nathan@nathanm.com>
Mon, 4 May 2026 20:47:20 +0000 (13:47 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 5 May 2026 18:32:30 +0000 (20:32 +0200)
The author_association gate already restricts triggers to OWNER, MEMBER,
or COLLABORATOR, so a maintainer running /delta on a fork PR carries the
same trust as checking the PR out locally. Drop the fork rejection and
the unused base/head repo id parsing.

.github/workflows/delta.yml

index 2ec4feb87778068e6176f9a52c6c13546fce79d1..cf25171b0eed45aa45cd26f5693636b5fe19759f 100644 (file)
@@ -81,13 +81,6 @@ jobs:
           BASE_SHA=$(echo "$pr_json" | jq -r .base.sha)
           HEAD_BRANCH=$(echo "$pr_json" | jq -r .head.ref)
           HEAD_SHA=$(echo "$pr_json" | jq -r .head.sha)
-          BASE_REPO_ID=$(echo "$pr_json" | jq -r .base.repo.id)
-          HEAD_REPO_ID=$(echo "$pr_json" | jq -r '.head.repo.id // empty')
-
-          if [ "$HEAD_REPO_ID" != "$BASE_REPO_ID" ]; then
-            echo "::error::/delta is not supported on pull requests from forks"
-            exit 1
-          fi
 
           if [ "$OFFSET" = "0" ]; then
             HEAD_REF="$HEAD_SHA"