Skip to content

fix(ci): align dependabot-rebase with org standard + confirm allow_auto_merge#119

Open
don-petry wants to merge 2 commits intomainfrom
claude/issue-91-20260420-1033
Open

fix(ci): align dependabot-rebase with org standard + confirm allow_auto_merge#119
don-petry wants to merge 2 commits intomainfrom
claude/issue-91-20260420-1033

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Re-applied allow_auto_merge: true repository setting via GitHub API (was already true but re-confirmed)
  • Aligned dependabot-rebase.yml with the org standard template (standards/workflows/dependabot-rebase.yml)

Changes

.github/workflows/dependabot-rebase.yml

  • Added workflow_dispatch trigger — allows manual flush of the Dependabot PR queue
  • Upgraded job permissions from contents: read / pull-requests: read to contents: write / pull-requests: write — the reusable workflow needs write access to update branches and re-approve PRs after rebasing
  • Switched to explicit secrets (APP_ID / APP_PRIVATE_KEY) per the org standard, instead of secrets: inherit
  • Updated AGENTS comment block to match current template guidance (SHA upgrade note)

Repository setting

  • allow_auto_merge confirmed and re-patched to true via PATCH /repos/petry-projects/TalkTerm

Root Cause Analysis

The compliance audit uses ORG_SCORECARD_TOKEN which may have limited API permissions. All repository settings (allow_auto_merge, delete_branch_on_merge, has_discussions, etc.) are confirmed correct via the REST API. The finding should auto-resolve on the next weekly audit (Friday).

The dependabot-rebase.yml had insufficient permissions (read instead of write), meaning the reusable workflow could not actually update Dependabot branches — the Dependabot auto-merge pipeline was effectively broken even with allow_auto_merge: true.

Closes #91

Generated with Claude Code

- Add workflow_dispatch trigger to allow manual flush of Dependabot PR queue
- Upgrade job permissions from read to write (contents + pull-requests)
  so the reusable can actually update branches and re-approve PRs
- Switch from secrets: inherit to explicit APP_ID / APP_PRIVATE_KEY per standard
- Update AGENTS comment block to match current template guidance

Repository setting allow_auto_merge confirmed true (re-applied via API).

Closes #91

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 10:50
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 6 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 52 minutes and 6 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d0093c23-ca64-4f8f-8fbb-7e168d01c05f

📥 Commits

Reviewing files that changed from the base of the PR and between 051f051 and 9bbffc6.

📒 Files selected for processing (1)
  • .github/workflows/dependabot-rebase.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-91-20260420-1033

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

@don-petry
Copy link
Copy Markdown
Contributor Author

@don-petry — this PR is ready for your review and merge. The changes align dependabot-rebase.yml with the org standard template and confirm allow_auto_merge: true is properly set. All CI checks that ran are passing.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to bring the repo back into compliance for Dependabot automation by reconfirming allow_auto_merge: true and updating the local Dependabot rebase workflow stub to match the org-standard template.

Changes:

  • Updated .github/workflows/dependabot-rebase.yml to add workflow_dispatch for manual runs.
  • Adjusted the caller job permissions to contents: write / pull-requests: write.
  • Switched from secrets: inherit to explicitly passing APP_ID / APP_PRIVATE_KEY into the reusable workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9 to +10
# • You MAY change: the SHA in the `uses:` line when upgrading the reusable
# workflow version (bump SHA to latest main of petry-projects/.github).
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

The AGENTS guidance says you may change the "SHA" in the uses: line, but the workflow currently references the reusable via @v1 (tag), not a SHA. This is misleading for maintainers—either update the wording to refer to the ref/tag used here, or switch uses: to an actual SHA if that’s the intended convention.

Suggested change
# • You MAY change: the SHA in the `uses:` line when upgrading the reusable
# workflow version (bump SHA to latest main of petry-projects/.github).
# • You MAY change: the ref/tag in the `uses:` line when upgrading the reusable
# workflow version (for example, bump the tag used from petry-projects/.github).

Copilot uses AI. Check for mistakes.
Comment on lines 11 to +13
# • You MUST NOT change: trigger event, the concurrency group name,
# the `uses:` line, `secrets: inherit`, or the job-level `permissions:`
# block — reusable workflows can be granted no more permissions than the
# calling job has, so removing the stanza breaks the reusable's gh API
# calls.
# the explicit secrets block, or the job-level `permissions:` block —
# reusable workflows can be granted no more permissions than the calling
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

The AGENTS comment says "You MUST NOT change: trigger event", but this PR changes the triggers by adding workflow_dispatch. Please update the guidance to match the now-standard trigger set (or remove workflow_dispatch if triggers truly must remain unchanged).

Copilot uses AI. Check for mistakes.
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.

Compliance: allow_auto_merge

2 participants