Repository navigation
fix(ci): run Dependabot workflows on pull_request instead of pull_request_target - #139
Merged
Merged
Conversation
…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
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.
Requested by Michaël · project thread
Why
GitHub now blocks
pull_request_targetin public repositories by default (enforced since 2026-12-02). Every run ofdependabot-reminders.ymlandsemantic-pr.ymlhas ended instartup_failuresince then, on Dependabot PRs and on our own.What
dependabot-reminders.ymlandsemantic-pr.ymltopull_request.dependabot-reminders.yml: Dependabot's own branches still get a write token onpull_requestthrough the workflow'spermissionskey, so the reminder comment keeps working. The checkout now pinsbase.shaso the rules still come frommain, not from the PR.semantic-pr.ymlonly reads the PR title, sopull_requestwith read access is all it needs (same as firmware'spr-lint.yml).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·ecreateor a rebase on an open Dependabot PR should get the reminder comment back.Generated by Claude Code