Repository navigation
fix(settings): apply the default-branch baseline to devlake - #79
waynesun09 wants to merge 1 commit into
Conversation
devlake had no active rule on main: excluded from the baseline and its own ruleset disabled. Changes now arrive through pull requests, and the fleet sync App is a baseline bypass actor. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
PR Summary by QodoApply default-branch protection to devlake
AI Description
Merge Risk
|
Code Review by Qodo
1. DevLake changes can skip owner review
|
| repository_name: | ||
| include: [] | ||
| exclude: | ||
| - devlake # fork synced by direct push; see repos/devlake.yml |
There was a problem hiding this comment.
1. Devlake changes can skip owner review 🐞 Bug ⛨ Security
Removing devlake from the baseline exclusion enables require_code_owner_review, but GitHub does not assign a code owner when the matching team lacks repository access. For paths whose only matching owner is the inaccessible @konflux-ci/konflux-devprod-team named in the PR description, a pull request has no owner approval to require, while the baseline requires zero other approvals.
Agent Prompt
## Issue description
The newly enabled code-owner review rule cannot require approval for files whose only matching CODEOWNERS team lacks access to devlake.
## Fix Focus Areas
- settings.yml[31-34]
- repos/devlake.yml[1-4]
## Recommended Fix
Update devlake's CODEOWNERS to name a visible team with write access and verify GitHub reports no CODEOWNERS errors before removing its baseline exclusion. If that update cannot happen first, retain the exclusion until it does.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
🤖 Finished Review · ✅ Success · Started 5:59 PM UTC · Completed 6:05 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.81 |
|
Risk Assessment: low (1/5) DetailsSmall config-only change modifying two governance files with minimal churn, no protected paths or dependency alterations, and low overall blast radius. |
|
Looks good to me Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== --> Looks good to me |
Puts
fullsend-ai/devlakeunder the org baseline ruleset, so itsmaingets the same protection as the other repositories.Why
devlake has no active rule on
maintoday: it is excluded from the baseline, and its ownprotect mainruleset is disabled. Anyone with write access can delete the branch or force-push to it.The exclusion was there because the fork used to be synced by direct push. Recent changes reach
mainthrough pull requests (#5, #13, #14). The one direct push left is the fleet sync (fullsend-ai-sync), which is a baseline bypass actor.What this changes
settings.yml: dropsdevlakefrom thedefault-branchexclusion list.maingets no deletion, no force push, and changes through pull requests (0 approvals, code-owner review, resolved threads).repos/devlake.yml: comment update only. The stricter repo ruleset (1 approval, required signatures) stays disabled until the devlake owners opt in.Merging also runs the safe-settings apply, which turns on Dependabot alerts for the four
codecov-*forks created today. They already have the baseline ruleset, and the daily run has not reached them yet.Follow-up
devlake's
CODEOWNERSstill names@konflux-ci/konflux-devprod-team, which has no access here. With code-owner review on, devlake pull requests need an admin merge untilCODEOWNERSis updated.🤖 Generated with Claude Code