Skip to content
This repository was archived by the owner on Dec 4, 2026. It is now read-only.

Fix Dependabot auto-merge classification - #524

Merged
aroviqen merged 13 commits into
mainfrom
inspect-dependabot-pr-names
Jul 6, 2026
Merged

aroviqen merged 13 commits into
mainfrom
inspect-dependabot-pr-names

Conversation

@aroviqen

@aroviqen aroviqen commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

TDD / Validate-First Evidence

  • Failing proof before implementation: bash tests/dependabot-auto-merge.sh failed with Reusable Dependabot workflow must fetch Dependabot metadata instead of classifying updates from the PR title.
  • Passing proof after implementation: bash tests/dependabot-auto-merge.sh; git diff --check; yamllint .github/workflows/reusable-dependabot-auto-merge.yml .github/workflows/dependabot-auto-merge.yml; ./scripts/preflight.sh
  • Validate-first exception reference: N/A
  • No executable change reason: N/A

Defect proof

The failing condition reproduced the current defect: Dependabot GitHub Actions updates pinned to commit SHAs produce titles such as chore(deps): Bump ... from <sha> to <sha>, while the reusable auto-merge workflow tried to classify updates by parsing semver values out of github.event.pull_request.title.

Change

  • Replace PR-title parsing in .github/workflows/reusable-dependabot-auto-merge.yml with dependabot/fetch-metadata outputs.
  • Preserve the existing phase policy for semver major, minor, and patch updates.
  • Classify GitHub Actions workflow-reference SHA bumps as github-actions-non-semver and route them to manual review with a specific explanation.
  • Extend tests/dependabot-auto-merge.sh so the reusable workflow must fetch Dependabot metadata and must not regress to title-based classification.
  • Document the change in CHANGELOG.md.

Validation

  • bash tests/dependabot-auto-merge.sh
  • git diff --check
  • yamllint .github/workflows/reusable-dependabot-auto-merge.yml .github/workflows/dependabot-auto-merge.yml
  • ./scripts/preflight.sh
  • Signed commit verified with git log -1 --show-signature --format=fuller

Local review

  • Comprehensive review: checked behavior, regression coverage, changelog entry, and stray follow-up wording in the touched scope.
  • Deep-dive review: checked workflow policy behavior, licensing scope, and security-sensitive automation paths.
  • Best-practices review: checked workflow permissions, pinned external action usage, branch scope, and package/governance metadata impact.
  • Security review: checked token usage, secret handling, and Dependabot-only enrollment guards.

Linked work

Before ready

  • Keep this PR in draft until GitHub CI finishes on the pushed branch.
  • Re-check the PR view after CI completes and only mark ready if the final self-review finds zero issues.

@aroviqen
aroviqen marked this pull request as ready for review July 6, 2026 07:55
Copilot AI review requested due to automatic review settings July 6, 2026 07:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes Dependabot auto-merge eligibility classification by switching the reusable workflow from PR-title parsing to dependabot/fetch-metadata outputs, ensuring SHA-based GitHub Actions bumps are handled deterministically and routed to manual review when semver metadata is unavailable.

Changes:

  • Replaced PR-title-based semver parsing with Dependabot metadata (dependabot/fetch-metadata) and updated phase behavior to keep MAJOR updates on manual review in all phases.
  • Extended regression tests to enforce metadata usage and prevent reintroducing title-based classification.
  • Updated caller workflow and changelog to reflect the corrected behavior and policy.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/dependabot-auto-merge.sh Adds regression checks ensuring the reusable workflow uses Dependabot metadata and avoids PR-title classification.
CHANGELOG.md Documents the Dependabot classification fix and related workflow/test updates.
.github/workflows/reusable-dependabot-auto-merge.yml Implements metadata-based classification, adds handling for GitHub Actions SHA bumps, and updates messaging/policy.
.github/workflows/dependabot-auto-merge.yml Updates the local caller workflow invocation to align with reusable-workflow constraints/policy.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 81750b8049

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/dependabot-auto-merge.sh Resolved
Comment thread tests/dependabot-auto-merge.sh Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5003867313

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: GitHub Actions title fallback leak
    • Restricted the metadata-empty PR-title fallback to non-github-actions ecosystems and added a regression test so incomplete GitHub Actions metadata now stays on manual review.

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit f4408c0. Configure here.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f4408c030c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 790c32fdfc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@aroviqen
aroviqen merged commit f9c5276 into main Jul 6, 2026
15 checks passed
@aroviqen
aroviqen deleted the inspect-dependabot-pr-names branch July 6, 2026 09:44
Copilot AI mentioned this pull request Oct 9, 2026
17 tasks done
aroviqen added a commit that referenced this pull request Oct 9, 2026
Register the exact contracts #524 / PR #525 Ready source through maintained Exact-State-Adoption v3 CURRENT_RECEIPT admission. Preserve historical provider H0, the real issued H1 receipt identity, finite history and unavailable package bytes. Add direct positive and negative safety-harness regression execution.

Fixes #1038
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants