Skip to content

fix(ci): run Dependabot workflows on pull_request instead of pull_request_target - #137

Merged
Tichael merged 1 commit into
mainfrom
fix/dependabot-pull-request-target
Dec 6, 2026
Merged

Tichael merged 1 commit into
mainfrom
fix/dependabot-pull-request-target

Conversation

@Tichael

@Tichael Tichael commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Requested by Michaël · project thread

Why

GitHub now blocks pull_request_target in public repositories by default (enforced since 2026-12-02). Every run of dependabot-reminders.yml has ended in startup_failure since then, on Dependabot PRs and on our own.

What

  • Switch dependabot-reminders.yml to pull_request.
  • dependabot-reminders.yml: Dependabot's own branches still get a write token on pull_request through the workflow's permissions key, so the reminder comment keeps working. The checkout now pins base.sha so the rules still come from main, not from the PR.

Testing

The fix can only be confirmed by GitHub: this PR's own run of the workflow should start instead of failing at startup (the reminders job is skipped because the author isn't Dependabot). After merge, ·@·d·ependabot r·ecreate or a rebase on an open Dependabot PR should get the reminder comment back.


Generated by Claude Code

…uest_target

GitHub now blocks pull_request_target in public repositories by default
(enforced since 2026-12-02), so these workflows ended in startup_failure
on every PR. Dependabot's own branches still get a write token on
pull_request through the workflow's permissions key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XkZEiTAg2KWVn8Y5ARmddv
@Tichael Tichael self-assigned this Dec 6, 2026
@Tichael
Tichael merged commit dc111ac into main Dec 6, 2026
7 checks passed
@Tichael
Tichael deleted the fix/dependabot-pull-request-target branch December 6, 2026 05:39
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.

2 participants