Repository navigation
[Sync] Update project files from source repository (70b250f) - #370
Merged
mrz1836 merged 1 commit intoOct 8, 2026
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Expanding automatic approval of production dependencies warrants human security review, especially with the unresolved security-setting bypass.
1 open finding
What changed in this PR
Adds same-owner dependency verification to the existing Dependabot workflow, allowing first-party production patch updates to auto-merge.
Changes:
- Enables a configurable same-owner production patch exception.
- Verifies dependency ownership through package names and the GitHub API.
- Updates approval messages, reporting, and workflow comments.
| File | Description |
|---|---|
.github/workflows/dependabot-auto-merge.yml |
Adds ownership checks, decision logic, and reporting. |
.github/env/20-workflows.env |
Enables the same-owner patch auto-merge setting. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
github-actions
Bot
deleted the
chore/sync-files-go-bitcoin-20261008-141925-70b250f
branch
October 8, 2026 14:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What Changed
Added
DEPENDABOT_AUTO_MERGE_PATCH_SAME_OWNER=true(.github/env/20-workflows.env)Added
OWNER_LC=${REPO_OWNER,,}(.github/env/20-workflows.env)Added
COUNT=0(.github/env/20-workflows.env)Added
IFS=',' read -ra NAMES <<< "$DEPENDENCY"(.github/env/20-workflows.env)Added
SAME_OWNER=$SAME_OWNER_IN(.github/env/20-workflows.env)Added
APPROVAL_MSG=✅ Auto-approving patch update (same-owner production dependency)(.github/env/20-workflows.env)Added
DEPENDABOT_AUTO_MERGE_PATCH_SAME_OWNER=true(.github/env/20-workflows.env)Added
OWNER_LC=${REPO_OWNER,,}(.github/env/20-workflows.env)Added
COUNT=0(.github/env/20-workflows.env)Added
IFS=',' read -ra NAMES <<< "$DEPENDENCY"(.github/env/20-workflows.env)Added
SAME_OWNER=$SAME_OWNER_IN(.github/env/20-workflows.env)Added
APPROVAL_MSG=✅ Auto-approving patch update (same-owner production dependency)(.github/env/20-workflows.env)Introduced same-owner dependency detection logic that verifies whether all dependencies in a Dependabot PR are hosted under the repository's own GitHub owner (org/user)
Modified Dependabot auto-merge workflow to allow automatic merging of patch updates for first-party production dependencies when all updated packages are verified to be owned by the same GitHub owner as the repository
Updated workflow documentation to clarify that third-party production patch updates still require manual review while first-party patches can auto-merge when the feature is enabled
Added new "auto-merge-patch-same-owner" action type with corresponding approval messages and reporting throughout the workflow
Why It Was Necessary
github.repository_ownerat runtime, ensuring the workflow doesn't need modification when synced to different repositoriesTesting Performed
AUTO_MERGE_PATCH,AUTO_MERGE_PATCH_SAME_OWNER, and same-owner verification) must pass before triggering the new auto-merge actionImpact / Risk
DEPENDABOT_AUTO_MERGE_PATCH_SAME_OWNERis disabled or when dependencies don't meet same-owner criteria