Skip to content

Commit 25f35f5

Browse files
authored
do not pass default branch and repo name to coana CLI (#723)
* do not pass default branch and repo name to coana CLI * upgrade coana to 14.12.10 * fix typo
1 parent 5a9a7ec commit 25f35f5

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket",
3-
"version": "1.0.104",
3+
"version": "1.0.105",
44
"description": "CLI for Socket.dev",
55
"homepage": "https://github.com/SocketDev/socket-cli",
66
"license": "MIT",
@@ -85,7 +85,7 @@
8585
"@babel/preset-typescript": "7.27.1",
8686
"@babel/runtime": "7.28.3",
8787
"@biomejs/biome": "2.2.2",
88-
"@coana-tech/cli": "14.12.6",
88+
"@coana-tech/cli": "14.12.10",
8989
"@cyclonedx/cdxgen": "11.6.0",
9090
"@dotenvx/dotenvx": "1.49.0",
9191
"@eslint/compat": "1.3.2",

src/commands/scan/perform-reachability-analysis.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ export async function performReachabilityAnalysis(
167167
const env: NodeJS.ProcessEnv = {
168168
...process.env,
169169
}
170-
if (repoName) {
170+
// do not pass default repo and branch name to coana to avoid mixing
171+
// buckets (cached configuration) from projects that are likely very different.
172+
if (repoName && repoName !== constants.SOCKET_DEFAULT_REPOSITORY) {
171173
env['SOCKET_REPO_NAME'] = repoName
172174
}
173-
if (branchName) {
175+
if (branchName && branchName !== constants.SOCKET_DEFAULT_BRANCH) {
174176
env['SOCKET_BRANCH_NAME'] = branchName
175177
}
176178

0 commit comments

Comments
 (0)