Skip to content

Fix dependabot-check false positive: verify author, not committer - #356

Merged
rajbos merged 1 commit into
mainfrom
rajbos-fix-dependabot-check-false-positive
Aug 31, 2026
Merged

Fix dependabot-check false positive: verify author, not committer#356
rajbos merged 1 commit into
mainfrom
rajbos-fix-dependabot-check-false-positive

Conversation

@rajbos

Copy link
Copy Markdown
Contributor

Problem

The 'Verify all commits are authored by Dependabot' step in approve-dependabot-pr.yml also checked the committer identity. However, Dependabot creates its commits through the GitHub API, so the committer is alwaysweb-flow / GitHub:

author_login: dependabot[bot] committer_login: web-flow author_name: dependabot[bot] committer_name: GitHub

This made the check fail on every legitimate Dependabot PR — #354 and #355 are blocked right now.

Fix

Keep the security intent (refuse auto-merge when a commit on the PR was authored by anyone other than dependabot[bot], preventing piggy-backed malicious commits), but only check the author identity:

  • .author.login must be dependabot[bot]
  • .commit.author.name must be dependabot[bot]
  • .commit.author.email must contain dependabot[bot] (49699333+dependabot[bot]@users.noreply.github.com)

The committer checks are removed: any commit created via the GitHub web/API — including a malicious one made with a compromised token — shows web-flow/GitHub as committer, so the author is the meaningful signal.

Verification

Dependabot creates commits via the GitHub API, so the committer is
always web-flow/GitHub. The previous jq filter required the committer
to be dependabot[bot], which could never pass and blocked every
legitimate Dependabot PR (e.g. #354, #355).
Keep the security intent - refuse auto-merge when a commit on the PR
was authored by anyone other than dependabot[bot] - but only check
the author identity:
- .author.login must be dependabot[bot]
- .commit.author.name must be dependabot[bot]
- .commit.author.email must contain 'dependabot[bot]'
The committer checks are removed because any commit created via the
GitHub web/API (including a malicious one) shows web-flow/GitHub as
committer, so the author is the meaningful signal.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 6a827f4.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@rajbos
rajbos merged commit 6dfca98 into mainAug 31, 2026
9 checks passed
@rajbos
rajbos deleted the rajbos-fix-dependabot-check-false-positive branch August 31, 2026 07:17
Sign up for freeto 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

@rajbos