Skip to content

Commit c19a77d

Browse files
lesebclaude
andauthored
fix(ci): drop github.actor check from dependabot-constraints workflow (#5826)
## Summary - Remove the `github.actor == 'dependabot[bot]'` check from the `dependabot-constraints.yml` workflow - Rely solely on the branch name pattern (`dependabot/uv/*`) to scope the workflow ## Motivation When a human triggers `@dependabot rebase`, closes/reopens a Dependabot PR, or pushes to the branch, `github.actor` is the human — not `dependabot[bot]`. This causes the workflow to skip on legitimate Dependabot PRs (observed on PR #5788: the workflow [ran but was skipped](https://github.com/ogx-ai/ogx/actions/runs/25785622348) because the actor was `leseb` after `@dependabot rebase`). The `dependabot/uv/*` branch name pattern is sufficient since only Dependabot creates these branches. The workflow also has read-only permissions (`contents: read`), so there is no security risk from removing the actor check. ## Test plan - [x] Trigger `@dependabot rebase` on PR #5788 after this PR is merged to verify the workflow runs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Sébastien Han <seb@redhat.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3a11f31 commit c19a77d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dependabot-constraints.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SECURITY NOTE: This workflow uses pull_request (not pull_request_target).
66
# Security measures:
77
# 1. Runs with read-only permissions (no write access to repo)
8-
# 2. Only runs for dependabot[bot] PRs on dependabot/uv/ branches
8+
# 2. Only runs for PRs on dependabot/uv/ branches (created exclusively by Dependabot)
99
# 3. Results uploaded as artifacts; companion workflow handles commits
1010
name: Dependabot constraint-dependencies
1111

@@ -27,7 +27,7 @@ permissions:
2727
jobs:
2828
update-constraints:
2929
runs-on: ubuntu-latest
30-
if: github.actor == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/uv/')
30+
if: startsWith(github.head_ref, 'dependabot/uv/')
3131
timeout-minutes: 10
3232

3333
steps:

0 commit comments

Comments
 (0)