Repository navigation
chore(ci): align checkout pin, add dependabot config, fix stale pyproject comments - #41
Merged
Merged
Conversation
`dco-check.yml` was the only workflow using `actions/checkout@v6.0.2` while the other 7 (`pr-checks`, `coverage`, `license-check`, `pyo3-checks`, `rust-e2e`, `close-stale`, plus composites under `.github/actions/`) all use `actions/checkout@v4` at SHA 34e114876b0b11c390a56381ad16ebd13914f8d5. No security delta — both are SHA-pinned. Pure version-drift hygiene so a maintainer reading the workflows sees one consistent version across the repo. Co-authored-by: Isaac Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
Closes the dependency-hygiene gap by configuring Dependabot to track the two ecosystems the kernel actually uses: `cargo` (Rust crates) and `github-actions` (SHA-pinned actions). `pip` is intentionally excluded. Per go/pinning-python-deps, the kernel is treated as an externally-published library: major-version bounds in `pyo3/pyproject.toml` + `uv sync` re-resolution per CI run, no committed lockfile. Letting Dependabot rewrite pinned pip versions would conflict with that policy. Both ecosystems batch minor + patch updates via groups to reduce PR churn; security advisories still surface as individual PRs. Limits: cargo 10 open PRs, github-actions 5. Co-authored-by: Isaac Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
2 tasks
The dependency-block comments claimed CI uses `uv sync --frozen` with a committed `uv.lock` carrying SHA256 hashes. The actual policy (per `.github/workflows/pyo3-checks.yml` + go/pinning-python- deps externally-published-library rule) is the opposite: no committed lockfile, no `--frozen`, just major-version bounds + the db-pypi JFrog proxy's 7-day age filter. The mismatch was misleading to security reviewers and to future contributors trying to understand the supply-chain story. Audits of dependency pinning flagged the pyarrow dep as "unpinned" partly because the comments suggested hash-locked CI that didn't exist. This commit rewrites both comment blocks to match the actual in-repo policy: - `[project].dependencies` block: explains the major-version bound and points at the workflow + policy doc. - `[dependency-groups].dev` block: explains `uv sync --group dev` (no `--frozen`), JFrog age-filter as baseline protection, uv re-resolution per CI run within the major-version bounds. No behavioural change. Documentation accuracy only. Co-authored-by: Isaac Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
vikrantpuppala
approved these changes
May 22, 2026
gopalldb
added a commit
that referenced
this pull request
May 22, 2026
…#42) ## 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 - PR #37 — original CODEOWNERS (workflows + self). - PR #41 — separate CI-hygiene batch (dependabot.yml addition, checkout v6→v4 pin alignment). That PR will naturally interact with this one; the rebase order depends on merge order. This pull request and its description were written by Isaac. Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
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.
Summary
Closes three audit findings related to CI and dependency hygiene.
2acc8e5dco-check.ymlcheckout was@v6.0.2; all other workflows use@v4. Aligned to v4. Both SHA-pinned — no security delta.820e69c.github/dependabot.yml. Added one coveringcargo+github-actions.pipintentionally omitted pergo/pinning-python-deps(externally-published-library rule).732827bpyo3/pyproject.tomlcomments claimeduv sync --frozen+ committeduv.lockwith SHA256 hashes. Actual CI usesuv sync --group dev(no--frozen, no committed lockfile) per the externally-published-library policy. Rewrote both comment blocks to match reality. Documentation-only fix.#9 — Checkout pin alignment
dco-check.yml:37was the only workflow usingactions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2. All other 7 workflows useactions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4. Both are SHA-pinned, so no actual security delta — purely version-drift hygiene.#10 — Dependabot configuration
New
.github/dependabot.yml:cargoecosystem: tracks the Rust crate graph weekly, complements the existingcargo-denygate. Patch + minor grouped to reduce PR churn; security advisories still surface as individual PRs. Limit: 10 open PRs.github-actionsecosystem: tracks SHA-pinned action versions weekly. Patch + minor grouped. Limit: 5 open PRs.pipecosystem intentionally NOT included. The kernel is treated as an externally-published library per go/pinning-python-deps:pyo3/pyproject.toml(e.g.pyarrow>=14,<19).uv syncre-resolves on each CI run within those bounds.pip install).Letting Dependabot rewrite pinned pip versions would conflict with that policy.
#16 — pyproject.toml comment accuracy
The
[project].dependenciesblock comment said:And the
[dependency-groups].devblock said:Neither was true. The repo has no
uv.lockcommitted; the workflow runsuv sync --group dev(no--frozen). The workflow's own inline comment correctly describes the policy ("No--frozenand no committed lockfile: per go/pinning-python-deps the externally-published-library rule says not to pin transitive deps") — only the pyproject comments were stale.This documentation drift was actively misleading dependency-pinning audits, contributing to false "unpinned pyarrow" findings. Both comment blocks now match the actual in-repo policy.
No behavioural change.
Audit items NOT addressed here
.github/workflows/**changes) — org-level streaming, not a repo-admin action.id-token: writein 3 workflows) — audit confirms current scoping is correct.persist-credentials: falsein rust-e2e) — audit confirms positive control, preserved.azure-prod.can_admins_bypass: true) — handled via repo settings PUT, already flipped tofalse.Test plan
uv sync --group dev, no--frozen).This pull request and its description were written by Isaac.