diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..7951c64f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,53 @@ +# Copyright (c) 2026 Databricks, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Dependabot configuration for the kernel. +# +# Ecosystems intentionally covered: +# - cargo: keeps the Rust crate graph patched, complements +# `cargo-deny` (RustSec advisories already block merges). +# - github-actions: keeps the SHA-pinned actions current. +# +# Ecosystems intentionally NOT covered: +# - pip: per go/pinning-python-deps the kernel is an +# externally-published library; we use major-version bounds in +# pyo3/pyproject.toml + `uv sync` re-resolution per CI run, with +# no committed lockfile. Letting Dependabot rewrite pinned pip +# versions would conflict with that policy. + +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + groups: + # Batch patch + minor updates to reduce PR churn; security + # advisories still come through as individual PRs. + cargo-minor-and-patch: + update-types: + - "minor" + - "patch" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 5 + groups: + gha-minor-and-patch: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/dco-check.yml b/.github/workflows/dco-check.yml index 106925e1..175c6fb9 100644 --- a/.github/workflows/dco-check.yml +++ b/.github/workflows/dco-check.yml @@ -34,7 +34,7 @@ jobs: name: Check DCO Sign-off steps: - name: Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 diff --git a/pyo3/pyproject.toml b/pyo3/pyproject.toml index 81a2cf72..67c2e2ad 100644 --- a/pyo3/pyproject.toml +++ b/pyo3/pyproject.toml @@ -9,16 +9,22 @@ description = "Python bindings for the Databricks SQL Kernel (PyO3)" requires-python = ">=3.9" license = { text = "Apache-2.0" } authors = [{ name = "Databricks" }] -# Runtime dependency for downstream consumers. Loose major-version -# bound per the published-library guidance — exact pins make this -# wheel harder for end-users to install alongside their own pyarrow -# consumers. The CI environment is fully hash-locked via `uv.lock` -# (see below), separately from this contract. +# Runtime dependency for downstream consumers. Major-version bound +# per the go/pinning-python-deps externally-published-library rule: +# exact pins make this wheel harder for end-users to install +# alongside their own pyarrow consumers. The CI environment also +# uses these bounds (no committed lockfile) — see the +# `[dependency-groups].dev` block below + the workflow comment in +# `.github/workflows/pyo3-checks.yml` for the policy rationale. dependencies = ["pyarrow>=14,<19"] # Dev / CI dependencies. PEP 735 standard; uv reads this directly. -# `uv sync --frozen` installs from `uv.lock`, which carries SHA256 -# hashes for every artifact + transitive dep. +# CI runs `uv sync --group dev` (no `--frozen`, no committed +# lockfile) per the externally-published-library policy in +# go/pinning-python-deps. The major-version upper bounds below +# plus the `db-pypi` JFrog proxy's 7-day age filter are the +# baseline supply-chain protection; uv re-resolves on each CI run +# within those bounds. [dependency-groups] dev = [ "maturin>=1.7,<2.0",