fix(ci): correct Dependabot PR detection in Claude workflow

- Fix workflow condition to use github.event.pull_request.user.login
- Add fallback condition with github.actor for security
- Add workflow_dispatch trigger for manual testing
- Implements the "belt and suspenders" approach from issue analysis

Co-authored-by: ntindle <8845353+ntindle@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-18 19:28:10 +00:00
parent 3d17911477
commit 67dab25ec7

View File

@@ -14,11 +14,14 @@ name: Claude Dependabot PR Review
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch: # Allow manual testing
jobs:
dependabot-review:
# Only run on Dependabot PRs
if: github.actor == 'dependabot[bot]'
if: |
github.actor == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 30