Skip to content

Commit 14b10c8

Browse files
Scope Dependabot to Maven and ignore provided-scope deps (#1289)
Spark, Scala, and Spark's Jackson libs are declared `provided` in the poms — compiled against but not packaged into the Zingg jar. The Spark runtime (Databricks/EMR/etc.) supplies and patches them, so Dependabot PRs/alerts on these are noise. Ignore them; keep jackson-annotations (compile scope, shipped) since its alerts are real.
1 parent 4e0978e commit 14b10c8

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
1+
# Dependabot configuration for Zingg.
2+
# See: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
#
4+
# NOTE (issue #1289): Zingg runs *on top of* a Spark cluster (Databricks, EMR,
5+
# spark-submit classpath). Spark, Scala, and the Jackson libs Spark ships are
6+
# declared as `provided` scope in the poms — they are compiled against but NOT
7+
# packaged into the Zingg jar. The runtime environment supplies (and patches)
8+
# them. Zingg cannot choose their runtime version, so Dependabot PRs/alerts on
9+
# these are noise. We therefore `ignore` them below.
10+
# GitHub classifies Maven `provided` scope as "runtime" (not "development"), so
11+
# there is no built-in scope filter for this yet (dependabot-core#7973) — the
12+
# ignore list is the config-level lever, and pom <exclusions> remain the real
13+
# fix for transitive artifacts we must strip from the shipped graph.
514

615
version: 2
716
updates:
8-
- package-ecosystem: "*" # See documentation for possible values
9-
directory: "/" # Location of package manifests
17+
- package-ecosystem: "maven"
18+
directories:
19+
- "/**" # cover the root + all Maven submodules (common/*, spark/*, ...)
1020
schedule:
1121
interval: "weekly"
22+
open-pull-requests-limit: 10
23+
ignore:
24+
# --- provided scope: supplied by the Spark runtime, not shipped by Zingg ---
25+
- dependency-name: "org.apache.spark:*"
26+
- dependency-name: "org.scala-lang:*"
27+
- dependency-name: "com.fasterxml.jackson.core:jackson-core"
28+
- dependency-name: "com.fasterxml.jackson.core:jackson-databind"
29+
# NOTE: jackson-annotations is `compile` scope (shipped in the jar) — do
30+
# NOT ignore it; its alerts are real and actionable.

0 commit comments

Comments
 (0)