Skip to content

ci(dependabot): explain the type change for indirect npm packages - #289

Merged
dschach merged 2 commits into
mainfrom
ci/dependabot-npm-build-prefix
Oct 21, 2026
Merged

dschach merged 2 commits into
mainfrom
ci/dependabot-npm-build-prefix

Conversation

@dschach

@dschach dschach commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Intent

Dependabot opened the security update PR #288 for follow-redirects with the type deps. follow-redirects is an indirect package that only development dependencies need, so the correct type is build. Dependabot used the production prefix for this indirect package. The shared reusable Dependabot workflow now corrects the type from package-lock.json. This PR keeps the prefixes as they are and explains the type change in the configuration.

Changes

Dependabot configuration

  • Use the same .github/dependabot.yml text as the shared configuration repository. The only difference is an ignore rule there that is for that repository only.

  • Add a comment that explains that Dependabot can use deps for an indirect npm package, and that the workflow changes the type to build when only development dependencies need the package.

  • The comment now says "the Dependabot workflow, which calls dependabot-reusable.yml" and not a file name, because the caller file has a different name in each repository.

  • The prefixes stay the same: deps for production dependencies, build for development dependencies, and ci for GitHub Actions.

Behavior notes

  • This PR changes a comment only. The new behavior comes from the shared workflow, which this repository already calls.

  • The comment uses general words, so the same text can go into other repositories.

Test plan

  • The YAML parses, and Prettier passes.

  • Merge this PR after the shared workflow change, so that the comment describes behavior that exists.

  • The next Dependabot security update for an indirect development package gets a title that starts with build(.

🤖 Generated with Claude Code

Dependabot used the production prefix for a security update of an indirect npm dependency, so the PR got the type deps. All npm packages in this repository are tools and none is part of the Salesforce package, so both npm prefixes are now build.

Co-Authored-By: Claude <noreply@anthropic.com>
@dschach dschach self-assigned this Oct 21, 2026
…ckages

Return the npm prefix to deps for production dependencies. The shared reusable workflow changes the type to build for indirect packages that only devDependencies need. Use the same header comment as the shared Dependabot configuration.

Co-Authored-By: Claude <noreply@anthropic.com>
@dschach dschach changed the title ci(dependabot): use build for every npm dependency prefix ci(dependabot): explain the type change for indirect npm packages Oct 21, 2026
@dschach
dschach merged commit 18abc20 into main Oct 21, 2026
8 checks passed
@dschach
dschach deleted the ci/dependabot-npm-build-prefix branch October 21, 2026 07:38
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.

1 participant