Skip to content

chore(ci): expand CODEOWNERS to cover Cargo + dependency-policy files - #42

Merged
gopalldb merged 1 commit into
mainfrom
chore/codeowners-expand
May 22, 2026
Merged

gopalldb merged 1 commit into
mainfrom
chore/codeowners-expand

Conversation

@gopalldb

Copy link
Copy Markdown
Collaborator

Summary

Closes audit finding #2 (recap from a recent security audit batch): the original CODEOWNERS landed in PR #37 only covered .github/workflows/ and the CODEOWNERS file itself. Audit asked for the Cargo dependency graph + license-policy gate to also require team review, since adding a new crate or relaxing license rules is security-relevant.

What this adds

New ownership rows for @databricks/eng-oss-sql-driver:

Path Why
.github/dependabot.yml Dependency-update automation config — controls what auto-PRs land
.github/actions/ Composite actions (e.g. setup-jfrog)
/Cargo.toml, /Cargo.lock Top-level crate graph
/deny.toml cargo-deny license / RustSec advisory gate
/about.toml Attribution-page source
/pyo3/Cargo.toml, /pyo3/pyproject.toml PyO3 sub-crate manifests (pip dep flows through pyproject.toml per go/pinning-python-deps)

Pre-existing coverage preserved: .github/workflows/ + .github/CODEOWNERS itself.

Enforcement

These rules are enforced by the protect-main ruleset's require_code_owner_review rule (already on). PRs touching any of the paths above will auto-request review from @databricks/eng-oss-sql-driver and cannot merge without it.

File rewrite

Also rewrites the file with comments explaining:

  • GitHub's last-match-wins semantics (so future editors don't get tripped up reordering rules)
  • Which ruleset enforces the rules
  • Why each ownership row exists

No behavioural change to the existing two paths — purely additive.

Test plan

  • Confirm GitHub recognises the expanded file (PR's Reviewers sidebar should auto-request @databricks/eng-oss-sql-driver since this PR itself edits a CODEOWNERS-protected path).
  • Touch a covered file (e.g. Cargo.toml in a follow-up PR) and confirm the review-request fires.

Related

This pull request and its description were written by Isaac.

Original CODEOWNERS (PR #37) covered only .github/workflows/ and the
CODEOWNERS file itself. Audit flagged that Cargo manifests + the
license-policy gate are security-relevant and should also require
team review.

Adds ownership rules for:
- .github/dependabot.yml — dependency-update automation config
- .github/actions/ — composite actions (setup-jfrog etc.)
- /Cargo.toml + /Cargo.lock — top-level crate graph
- /deny.toml — cargo-deny license / advisory policy gate
- /about.toml — attribution-page source
- /pyo3/Cargo.toml + /pyo3/pyproject.toml — PyO3 sub-crate manifests
  (pip dep changes flow through pyproject.toml per
  go/pinning-python-deps)

Also rewrites the file with explanatory comments + a note on the
last-match-wins semantics so future editors understand the rule
ordering.

The expanded ownership is enforced by the protect-main ruleset's
`require_code_owner_review` rule (already on).

Co-authored-by: Isaac
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
@gopalldb
gopalldb requested a review from a team as a code owner May 22, 2026 03:08
@gopalldb
gopalldb merged commit 52aa4ed into main May 22, 2026
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.

2 participants