From 78c0c1dfda086c2eab493975540f6044cceae49d Mon Sep 17 00:00:00 2001 From: luke-ht Date: Mon, 4 May 2026 11:59:02 -0400 Subject: [PATCH] fix(ci): check PR author not actor for bot linear exemption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit github.actor reflects whoever triggered the workflow (last pusher), not the PR creator. If a human pushes a commit to a Renovate branch, actor becomes their username and the bot exemption is skipped. Use github.event.pull_request.user.login instead — this is the PR creator and is immutable regardless of subsequent pushes. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/pr-linear-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-linear-check.yml b/.github/workflows/pr-linear-check.yml index 2c8a181..68df79f 100644 --- a/.github/workflows/pr-linear-check.yml +++ b/.github/workflows/pr-linear-check.yml @@ -16,10 +16,10 @@ jobs: env: PR_BODY: ${{ github.event.pull_request.body }} LINEAR_ORG: ${{ inputs.linear_org }} - ACTOR: ${{ github.actor }} + PR_AUTHOR: ${{ github.event.pull_request.user.login }} run: | - if [[ "$ACTOR" == "dependabot[bot]" || "$ACTOR" == "renovate[bot]" || "$ACTOR" == "github-actions[bot]" ]]; then - echo "Bot actor ($ACTOR) — skipping Linear ticket check" + if [[ "$PR_AUTHOR" == "dependabot[bot]" || "$PR_AUTHOR" == "renovate[bot]" || "$PR_AUTHOR" == "github-actions[bot]" ]]; then + echo "Bot PR author ($PR_AUTHOR) — skipping Linear ticket check" exit 0 fi if echo "$PR_BODY" | grep -qE "https://linear\.app/${LINEAR_ORG}/issue/[A-Z]+-[0-9]+"; then