We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a9a7ec commit 27aae98Copy full SHA for 27aae98
src/commands/scan/perform-reachability-analysis.mts
@@ -167,10 +167,12 @@ export async function performReachabilityAnalysis(
167
const env: NodeJS.ProcessEnv = {
168
...process.env,
169
}
170
- if (repoName) {
+ // do not pass default repo and branch name to coana to mixing
171
+ // buckets (cached configuration) from projects that are likely very different.
172
+ if (repoName && repoName !== constants.SOCKET_DEFAULT_REPOSITORY) {
173
env['SOCKET_REPO_NAME'] = repoName
174
- if (branchName) {
175
+ if (branchName && branchName !== constants.SOCKET_DEFAULT_BRANCH) {
176
env['SOCKET_BRANCH_NAME'] = branchName
177
178
0 commit comments