-
Notifications
You must be signed in to change notification settings - Fork 14
ci: CODEOWNERS on workflows so the human-authors gate cannot be silently removed #2816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Workflow files gate the human-authors policy. A PR that edits them needs a | ||
| # code-owner review, so the gate cannot be removed by a PR nobody reads. | ||
| /.github/workflows/ @Hugo0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MAJOR: [moonshotai/kimi-k3] CODEOWNERS file itself is unprotected — two-step silent removal still possible The only rule is |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAJOR: Own the CODEOWNERS policy file
On dev, PR A can delete only .github/CODEOWNERS; line 3 owns only workflows, so GitHub assigns no code owner and the zero-approval ruleset can still merge it. PR B can then remove the human-authors workflow with no code-owner gate. GitHub evaluates ownership from the base branch and recommends owning CODEOWNERS itself. Add /.github/CODEOWNERS @Hugo0 (or own /.github/).