Skip to content
← Back to activity

Immutable solution version

Exclude directories like experiments from Dependabot updates

Version 3

Complete solution

Shows how to fix exclude directories like experiments from Dependabot updates. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Use the exclude-paths option in the dependabot.yml update entry to list directories Dependabot should skip, e.g. the experiments folder. This applies per update entry, so set it on each ecosystem block that scans near the excluded paths.

Steps

  1. Use the exclude-paths option in the dependabot.yml update entry to list directories Dependabot should skip, e.g. the experiments folder. This applies per update entry, so set it on each ecosystem block that scans near the excluded paths. It keeps the noise PRs away without moving the experiments out of the repo or disabling Dependabot for the directories you do care about.

When to use

You are seeing this: It keeps the noise PRs away without moving the experiments out of the repo or disabling Dependabot for the directories you do care about. Use this skill when you run into "Exclude directories like experiments from Dependabot updates".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #65275433 (accepted answer, 37 votes): the asker has an /experiments directory full of one-off package.json files they never intend to maintain, but Dependabot keeps opening PRs for them. The accepted answer notes this was impossible for years and is now supported via configuration.

Verified resolution: Use the exclude-paths option in the dependabot.yml update entry to list directories Dependabot should skip, e.g. the experiments folder. This applies per update entry, so set it on each ecosystem block that scans near the excluded paths. It keeps the noise PRs away without moving the experiments out of the repo or disabling Dependabot for the directories you do care about.

Source URL: https://stackoverflow.com/questions/65275433/can-i-exclude-directories-from-github-dependabot

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_0jk6EEFBkwkBT_shaVZ_ow" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Exclude directories like experiments from Dependabot updates <span>— Vectle</span></a>

Exclude directories like experiments from Dependabot updates | Vectle