Revert to pull_request_target: required workflows can't be reusable (fixes #1 regression)#2
Merged
Conversation
GitHub's 'require workflows to pass' ruleset rejects a workflow_call-only
workflow ('must have merge_queue, pull_request_target, or pull_request').
Converting this to reusable (PR #1) broke the org dependabot-automerge
ruleset for every repo. Restore the direct pull_request_target trigger so
the org ruleset can inject and run it across repos as intended. Keeps the
PR-author guard.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Restore
on: pull_request_targeton.github/workflows/dependabot-automerge.yaml(reverting theworkflow_callconversion from #1).Why — #1 broke the org ruleset
GitHub's "Require workflows to pass before merging" ruleset rule (the org
dependabot-automergeruleset) rejects a reusable workflow:Converting this workflow to
workflow_call(#1) made it invalid as the org's required workflow, breaking the rule for every repo. The ruleset injects and runs this workflow across repos, so it must be directly PR-triggerable — and per-repo caller workflows are unnecessary.This restores the known-working
pull_request_targettrigger (keeps the PR-author guard). After this merges, the ruleset's red workflow error clears.Follow-ups (separate)
dependabot.yml-only (drop the caller workflow).dependabot.yml.Fixes the regression from #1. Part of realrate/RealRate-Private#2148.