Skip to content

fix(dependabot): scope .release to direct dependencies only#36

Merged
pavel-kalmykov merged 1 commit into
mainfrom
fix/dependabot-release-allow-direct
Apr 17, 2026
Merged

fix(dependabot): scope .release to direct dependencies only#36
pavel-kalmykov merged 1 commit into
mainfrom
fix/dependabot-release-allow-direct

Conversation

@pavel-kalmykov

Copy link
Copy Markdown
Owner

Summary

After PR #35 landed the .release/ subpackage, Dependabot's security scan walked .release/package-lock.json, found the bundled brace-expansion inside node_modules/npm/node_modules/, and tried to create a security update PR for it. That path cannot be bumped by us; it lives inside the npm CLI tarball.

Result: the Dependabot Updates workflow failed twice with unknown_error.

This PR adds a second npm entry for /.release with allow: dependency-type: direct so Dependabot only considers direct deps (semantic-release, @semantic-release/changelog, @semantic-release/git) there. Transitive advisories inside npm's own bundled node_modules/ stay out of scope; they land upstream via npm/cli releases (11.13.0 currently in flight, npm/cli#9240).

Test plan

  • Dependabot Updates workflow no longer errors on push to main

After #35 isolated the release tooling in .release/, Dependabot's
security scan walked the new lockfile and tried to create a security
update for brace-expansion inside `node_modules/npm/node_modules/`.
That path is bundled by the npm CLI tarball and cannot be bumped
independently, so the run failed with `unknown_error`.

Add a second `npm` entry for /.release with `allow: dependency-type:
direct` so Dependabot only considers direct deps (semantic-release,
@semantic-release/changelog, @semantic-release/git) there. Transitive
advisories inside npm's own bundled node_modules are out of scope for
both us and Dependabot; they land upstream via npm/cli releases.
@pavel-kalmykov pavel-kalmykov merged commit ebc6b00 into main Apr 17, 2026
6 checks passed
@pavel-kalmykov pavel-kalmykov deleted the fix/dependabot-release-allow-direct branch April 17, 2026 16:23
@bitbucket-mcp-bot

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bitbucket-mcp-bot bitbucket-mcp-bot Bot added the released Shipped in a release label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant