Skip to content

fix: use pull_request.user.login instead of github.actor for Dependabot check#13

Merged
eddietejeda merged 1 commit into
mainfrom
fix/dependabot-actor-check
Jun 2, 2026
Merged

fix: use pull_request.user.login instead of github.actor for Dependabot check#13
eddietejeda merged 1 commit into
mainfrom
fix/dependabot-actor-check

Conversation

@eddietejeda
Copy link
Copy Markdown
Contributor

Summary

  • Replaces all github.actor == 'dependabot[bot]' checks with github.event.pull_request.user.login == 'dependabot[bot]'

Root cause

The claude-pr-review.yml workflow is enforced via an org ruleset as a required workflow. When required workflows run, github.actor is set to the workflow runner identity (github-actions[bot]), not the user who triggered the PR event. This means the Dependabot check github.actor == 'dependabot[bot]' always evaluates to false, so:

  • The "Auto-approve Dependabot bump" step is always skipped
  • The "Generate GitHub App token" step always runs — and fails on Dependabot PRs because HOTDATA_AUTOMATION_PRIVATE_KEY is inaccessible when Secret source: Dependabot

Fix

Switch to github.event.pull_request.user.login, which always reflects the PR author regardless of the workflow runner context.

Test plan

…ot check

github.actor is set to the workflow runner identity (github-actions[bot])
in org-required workflows, not the PR author. Switch to
github.event.pull_request.user.login which always reflects who opened the PR.
@eddietejeda eddietejeda merged commit 9746e81 into main Jun 2, 2026
1 check passed
@eddietejeda eddietejeda deleted the fix/dependabot-actor-check branch June 2, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant