How to configure Dependabot for a private monorepo using multiple private package registries (GPR/npm) and CodeQL analysis? #177564
Unanswered
Fortotest
asked this question in
Code Security
Replies: 1 comment
-
|
Dependabot needs both registries defined in the same config and CodeQL needs a manual build with the right auth. In your For CodeQL, turn off autobuild and install your dependencies manually. Add a step before This lets both Dependabot and CodeQL access private packages without failing. If this works, mark the answer as helpful so others can find it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi Security team,
I'm trying to lock down our security posture for a large, complex monorepo, and I'm facing a very difficult configuration problem.
Our Setup:
The Problem:
dependabot.ymlto authenticate against both GPR (usingGITHUB_TOKEN) and the external private npm registry (using a secret) simultaneously? The documentation seems to show one or the other, not both in the same config for a single monorepo.autobuildstep because it can't resolve the private packages.This combination of Dependabot + CodeQL + Monorepo + Multiple Private Registries is proving extremely difficult. What is the best-practice
dependabot.ymlandcodeql-analysis.ymlconfiguration for this specific, complex scenario?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions