Skip to content

ci(dependabot): run auto-merge on pull_request instead of pull_request_target - #104

Merged
iLevyTate merged 1 commit into
mainfrom
ci/automerge-pull-request
Nov 9, 2026
Merged

iLevyTate merged 1 commit into
mainfrom
ci/automerge-pull-request

Conversation

@iLevyTate

Copy link
Copy Markdown
Owner

GitHub is moving pull_request_target to blocked-by-default on public repos. During today's scheduled brownout, this workflow failed to start (startup_failure) on #101, #102 and #103. The run page says: Workflows are being blocked due to a scheduled brownout of the default pull_request_target protection for affected public repositories.

  • Trigger: pull_request, which is GitHub's documented Dependabot auto-merge pattern. A Dependabot run gets a read-only GITHUB_TOKEN, which the existing permissions block raises. The job uses no secrets.
  • Gate: unchanged. The job is still off unless the DEPENDABOT_AUTOMERGE variable is true, and the variable is not set today. If the variable ever doesn't reach a Dependabot run, the job skips, so the failure mode is that auto-merge stays off.
  • Forks: a github.repository check stops forks of this repo from running the job.
  • README: the optional approval token now goes in Dependabot secrets, because a Dependabot-triggered run cannot read ordinary Actions secrets.

Expected result: on this PR and on future Dependabot PRs, the workflow shows as skipped instead of failing to start.

…t_target

GitHub is making pull_request_target blocked by default on public repos; a
scheduled brownout on 2026-11-09 already stopped this workflow from starting
on every PR. pull_request is GitHub's documented Dependabot auto-merge pattern:
a Dependabot run's read-only token is raised by the existing permissions block,
and the job needs no secret. The job also checks the repository so forks never
run it. The opt-in variable gate is unchanged; if the variable does not reach a
Dependabot run, the job skips, so auto-merge stays off. The README's optional
PAT now goes in Dependabot secrets, the only ones a Dependabot run can read.
@iLevyTate
iLevyTate merged commit a39d00f into main Nov 9, 2026
10 checks passed
@iLevyTate
iLevyTate deleted the ci/automerge-pull-request branch November 9, 2026 18:12
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.

1 participant