Repository navigation
Conversation
Replace the ahmadnassri auto-merge action with the workflow used in codacy-trivy and quality-integrations-jira: codacybeta (AUTO_MERGE_TOKEN) approves minor/patch Dependabot PRs and enables squash auto-merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
The workflow may fail to approve or merge Dependabot pull requests because the configured token may be unavailable in Dependabot-triggered workflows. The token must use a supported Dependabot-accessible configuration or authentication mechanism before the intended automation can work.
Test suggestions
- A Dependabot patch update is approved and configured for squash auto-merge.
- A Dependabot minor update is approved and configured for squash auto-merge.
- A major Dependabot update is not approved or auto-merged.
- Auto-merge remains pending until the required CI check succeeds.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. A Dependabot patch update is approved and configured for squash auto-merge.
2. A Dependabot minor update is approved and configured for squash auto-merge.
3. A major Dependabot update is not approved or auto-merged.
4. Auto-merge remains pending until the required CI check succeeds.
TIP Add review instructions in .codacy/instructions/review.md, or an AGENTS.md, so the reviewer knows your conventions.
TIP How was this review? Give us feedback
| id: metadata | ||
| uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2 | ||
| with: | ||
| github-token: ${{ secrets.AUTO_MERGE_TOKEN }} |
There was a problem hiding this comment.
🔴 HIGH RISK
The requested approval and merge behavior will not occur if AUTO_MERGE_TOKEN is an ordinary organization secret, because secrets are restricted for Dependabot-triggered workflows; configure it as a Dependabot-available secret or use an appropriately supported trigger and token mechanism.
TIP React 👍 if this review is right, or reply with what's wrong and how it could be better to help improve the reviewer.
Dependabot PRs here are never merged on their own. The current
auto-merge.yml(ahmadnassri action withGITHUB_TOKEN) leaves a github-actions approval, which doesn't count toward the ruleset's required review, so every PR waits for a person (e.g. #350).This PR replaces it with the workflow that codacy-trivy and quality-integrations-jira already use:
codacybeta(via the org secretAUTO_MERGE_TOKEN) approves it and enables squash auto-merge.ci/circleci: plugins_testcheck.No setup needed:
AUTO_MERGE_TOKENalready reaches this repo, and auto-merge is already enabled on it.🤖 Generated with Claude Code