From c81d3843130b5d5159a7108b6db00f4307232e5e Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Thu, 11 Dec 2025 22:41:03 -0800 Subject: [PATCH] fix(ci): fix ready workflow --- .github/workflows/pr-approval-label.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-approval-label.yml b/.github/workflows/pr-approval-label.yml index 4c0131945c05..0da0e8eaa146 100644 --- a/.github/workflows/pr-approval-label.yml +++ b/.github/workflows/pr-approval-label.yml @@ -11,8 +11,12 @@ permissions: jobs: add-ready-label: runs-on: ubuntu-latest - # Only run when an org member approves - if: github.event.review.state == 'approved' && github.event.review.author_association == 'MEMBER' + # Only run when an org member approves and PR is not from a fork + # (fork PRs don't have write permissions to add labels) + if: | + github.event.review.state == 'approved' && + github.event.review.author_association == 'MEMBER' && + github.event.pull_request.head.repo.full_name == github.repository steps: - name: Add ready label uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1