fix(ci): check PR author not actor for bot linear exemption#25
Merged
Conversation
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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.actor= whoever triggered the workflow (last pusher) — changes when a human commits to a bot branchgithub.event.pull_request.user.login= PR creator — immutabledevopshas been blocked for 2 months because a manual push changed the actor fromrenovate[bot]to a human username, bypassing the exemptionSwitching to
PR_AUTHORfixes the exemption for all repos using this shared workflow, regardless of whether someone manually pushes to a bot-created branch.Test plan
devops—linear-checkshould pass/skip forrenovate[bot]PR🤖 Generated with Claude Code
📝 Auto-filled