From ef8ff9f9fc7b676e677358be529b2d766a80b914 Mon Sep 17 00:00:00 2001 From: tignear Date: Tue, 27 Oct 2026 03:48:36 +0900 Subject: [PATCH] ci(deps): configure security-only Cargo updates Configure Dependabot for the root Cargo workspace with open-pull-requests-limit: 0, allowing vulnerability-fix PRs while disabling ordinary version-update PRs. Use conventional chore(deps) titles and the dependencies label; security PRs require review before queueing. Document the required repository security settings and the distinction between GitHub's advisory database and the existing RustSec cargo-deny gate. Upstream version requirements can still prevent an automatic fix. No Renovate lockfile maintenance or advisory exclusions are introduced. Repository setting: Dependabot alerts were already enabled; automated security fixes have now been enabled and verified via the GitHub API. The configuration takes effect after merge. Validation: Dependabot JSON-schema validation passed; all 6 Mergify configuration tests passed; git diff --check passed. Dependency graph/alerts currently contain no open GitHub alerts, so no end-to-end generated security PR was available to verify. Change-Id: I5bf1be902f3b513518e0508630a5a370ef6a88c4 --- .github/dependabot.yml | 11 +++++++++++ CONTRIBUTING.md | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 145b2df393d..ae3e5bba29b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,14 @@ updates: prefix: "ci(deps)" labels: - dependencies + - package-ecosystem: cargo + directory: / + # Required by the schema; security updates are triggered by alerts. + schedule: + interval: daily + # Disable version updates, while retaining security updates. + open-pull-requests-limit: 0 + labels: + - dependencies + commit-message: + prefix: "chore(deps)" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9fba73763de..d7dcff99c92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -556,3 +556,24 @@ to succeed; failures, cancellations, and skips block merging. All Mergify queues also require the standalone `Verify workflow lockfile` check. Keep that check required in the master/develop rulesets so older PR check results cannot bypass a newly introduced lockfile requirement. + +## Dependency security updates + +Dependabot security updates open PRs when GitHub reports a vulnerable dependency +with an available compatible fix. The root Cargo configuration in +`.github/dependabot.yml` sets `open-pull-requests-limit: 0`: this disables +Dependabot version-update PRs while allowing security-update PRs. The required +`schedule` field does not turn these into routine lockfile refreshes. + +Enable Dependabot alerts and security updates in the repository's security +settings; the YAML file alone does not enable security updates. Security PRs +carry `dependencies` and require review before queueing. + +The daily `cargo-deny` workflow remains the RustSec advisory gate. GitHub's +advisory database and RustSec can differ, so a cargo-deny failure does not +guarantee an immediate Dependabot PR. An incompatible requirement in an +upstream dependency can also prevent an automatic fix; those cases need an +upstream release or an explicitly maintained patch. + +See [Dependabot security updates](https://docs.github.com/en/code-security/concepts/supply-chain-security/dependabot-security-updates) +and [security-only configuration](https://docs.github.com/en/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configure-security-updates).