Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to scan with npm workspaces project #1716

Open
mutongwu opened this issue Nov 12, 2024 · 1 comment
Open

Failed to scan with npm workspaces project #1716

mutongwu opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mutongwu
Copy link

mutongwu commented Nov 12, 2024

I have bearer installed with Homebrew and it works with other projects. But when I run scan in a project with "workspaces", it failed.

https://docs.npmjs.com/cli/v7/using-npm/workspaces

Description & Reproduction

Here is a simple project workspaces that will fail:

https://github.com/mutongwu/npm_workspaces

bearer scan ./

Expected Behavior

should work and scan the codes

Actual Behavior

Failed.Command output as follow:

Analyzing codebase
⠙  (391276/-) [0s]
Error: failed to get git context: error getting default branch name: exit status 128
-- git output --

Possible Fix

Your Environment

  • Operating System and version:
git --version
git version 2.47.0
  • Output of 'bearer version':
bearer version 1.46.4, build 380afa10188c8a5e5a4f3c6ebe7009373b44137f
@mutongwu mutongwu added the bug Something isn't working label Nov 12, 2024
@mutongwu
Copy link
Author

Looks like something goes wrong with git. It works now after I delete the projects and re-clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant