Skip to content

Configure Dependabot for npm and GitHub Actions#222

Merged
Divyansh-db merged 1 commit into
mainfrom
parthban-db/stack/fix-dependabot
Jun 16, 2026
Merged

Configure Dependabot for npm and GitHub Actions#222
Divyansh-db merged 1 commit into
mainfrom
parthban-db/stack/fix-dependabot

Conversation

@parthban-db

@parthban-db parthban-db commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds .github/dependabot.yml, which the repository was missing entirely. It disables routine npm version-update PRs (leaving Dependabot security updates on) and enables GitHub Actions updates on a 7-day cooldown, matching the configuration already used by the other Databricks SDK repositories (databricks-sdk-go, databricks-sdk-py, databricks-sdk-java) and the appkit npm repository.

Why

The repository has no Dependabot configuration on main, so Dependabot runs in its default mode: security updates only, with no cooldown, grouping, or version-update control. Those security-update PRs are not mergeable here. For example, #213 (esbuild advisories GHSA-g7r4-m6w7-qqqr / GHSA-gv7w-rqvm-qjhr) bumps the npm dev-toolchain (vite, vitest, @vitest/*) to brand-new versions, and every CI job fails at jf npm ci. The failure is not a code break: CI installs through the JFrog db-npm registry, which enforces a 7d-cooldown curation policy that blocks any package version less than 7 days old ("Package version is immature 7d"). Dependabot proposed 0-day-old versions, so the install is rejected before any test runs.

Leaving the repository unconfigured is not viable: simply enabling npm version updates would reproduce this failure at scale, since every routine bump would also target freshly published versions that the 7-day cooldown blocks, across 60+ workspace packages. The other Databricks SDK repos solved this by disabling package-ecosystem version updates (open-pull-requests-limit: 0) and keeping only GitHub Actions updates with a cooldown; appkit applies exactly this shape to an npm project. This PR brings sdk-js in line with that standard.

Note on scope: cooldown applies only to version updates, not security updates (GitHub docs), so this config does not by itself make security-update PRs like #213 pass — those remain blocked by the registry cooldown until their target versions mature. What it does fix is the systemic problem: it prevents a flood of unmergeable routine version-update PRs and keeps CI action pins current (which also clears the current "Node.js 20 actions are deprecated" warning, since ci.yml/docs.yml still pin actions/checkout@v4).

What changed

Interface changes

None.

Behavioral changes

  • npm: routine version-update PRs are disabled via open-pull-requests-limit: 0. Dependabot security updates are unaffected and continue to open (their internal limit is fixed and not controlled by this setting).
  • GitHub Actions: version-update PRs are enabled on a monthly schedule with cooldown: default-days: 7, so only action releases at least 7 days old are adopted. The generated .github/workflows/tagging.yml is excluded via exclude-paths.

Internal changes

Adds a single configuration file, .github/dependabot.yml. No source, build, or test changes.

How is this tested?

Configuration-only change. Validated by mirroring the schema of the existing, in-production sibling configs (databricks-sdk-go, databricks-sdk-py, databricks-sdk-java, appkit), which are confirmed to be valid and to produce working Dependabot PRs. No automated tests apply.

This PR adds only CI/repository configuration and has no consumer-facing effect, so no changelog entry is required.

NO_CHANGELOG=true

This pull request and its description were written by Isaac.

The repo had no dependabot.yml, so only security updates ran and they
opened PRs that bump npm dev-dependencies to brand-new versions which
CI's JFrog db-npm registry blocks under its 7-day package cooldown,
failing every check. Disable routine npm version-update PRs (security
updates only) and enable GitHub Actions updates with a 7-day cooldown,
matching the other Databricks SDK repos.

Co-authored-by: Isaac
@Divyansh-db Divyansh-db enabled auto-merge June 16, 2026 11:15
@Divyansh-db Divyansh-db added this pull request to the merge queue Jun 16, 2026
Merged via the queue into main with commit e6f4019 Jun 16, 2026
23 of 26 checks passed
@Divyansh-db Divyansh-db deleted the parthban-db/stack/fix-dependabot branch June 16, 2026 11:24
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