Skip to content

Add workflow that fails when Dependabot updates error#61

Closed
claude[bot] wants to merge 3 commits into
mainfrom
claude/dependabot-failure-watcher
Closed

Add workflow that fails when Dependabot updates error#61
claude[bot] wants to merge 3 commits into
mainfrom
claude/dependabot-failure-watcher

Conversation

@claude

@claude claude Bot commented Jul 21, 2026

Copy link
Copy Markdown

Requested by William Storey, Greg Oschwald · Slack thread

Before: when a Dependabot version-update job errors (e.g. gradle can't resolve a dependency), nothing surfaces it to a human — the failure only shows as a red triangle in Insights → Dependency graph → Dependabot, which nobody checks. That's how this repo's gradle updates were silently broken for ~7 months while github-actions updates kept flowing.

After: a weekly scheduled workflow checks whether any Dependabot Updates run failed in the last 8 days and fails (goes red, and emails whoever last edited the cron) if so — so a broken ecosystem surfaces through a normal failed scheduled run instead of an invisible tab.

How: Dependabot version updates run as Actions workflow runs named Dependabot Updates. .github/workflows/dependabot-failure-watcher.yml runs on a weekly schedule (plus workflow_dispatch for manual runs), queries those runs via gh run list, and exits non-zero if any completed with failure or startup_failure in the window. Needs only actions: read.

Why scheduled rather than workflow_run: a scheduled run's actor is the user who last edited the cron, so a failure emails a human; a workflow_run-triggered run's actor is dependabot[bot], which emails no one.

Caveats: GitHub auto-disables scheduled workflows after 60 days of repo inactivity; and the failure email targets whoever last modified the cron.

Rollout: this is the reference PR; the same single file is intended for the other ~39 maxmind repos that have a Dependabot config.

Comment thread .github/workflows/dependabot-failure-watcher.yml Fixed
Comment thread .github/workflows/dependabot-failure-watcher.yml Fixed
Comment thread .github/workflows/dependabot-failure-watcher.yml Fixed
@claude
claude Bot marked this pull request as ready for review July 21, 2026 22:25
This was referenced Jul 22, 2026
@claude

claude Bot commented Jul 22, 2026

Copy link
Copy Markdown
Author

Superseded by #62, which added this watcher to main (running Wednesdays and also catching timed_out). Closing as redundant — the functionality here is already on main.

@claude claude Bot closed this Jul 22, 2026
pull Bot pushed a commit to Rosenstein/GeoIP2-php that referenced this pull request Jul 22, 2026
Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull Bot pushed a commit to weiyilai/geoipupdate that referenced this pull request Jul 22, 2026
Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull Bot pushed a commit to weiyilai/MaxMind-DB-Reader-php that referenced this pull request Jul 22, 2026
Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull Bot pushed a commit to parhelia512/libmaxminddb that referenced this pull request Jul 22, 2026
Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull Bot pushed a commit to CrazyForks/GeoIP2-java that referenced this pull request Jul 22, 2026
Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants