-
Notifications
You must be signed in to change notification settings - Fork 106
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 send data to Bearer Cloud. Unable to calculate Metadata. exit status 128 #1196
Comments
Can we add a nice warning message as a CLI output with indication on what to do for the user @cfabianski ? |
@gmontard We have a message (debug) for this but maybe debug isn't enough bearer/pkg/report/output/saas/saas.go Line 223 in 5073de8
🤔 |
Message LGTM Though, don't you always have a default branch set with Git? And if not, is there a particular reason or a git command to use to make it so that we can advise the user to look into also? The env variable here sounds a bit hackish to me, especially if you're supposed to have a default branch setup. |
|
Description & Reproduction
When performing a scan with an API key we receive the following error
Failed to send data to Bearer Cloud. Unable to calculate Metadata. exit status 128
Error is happening when a repository has a local git HEAD but no origin/HEAD
This is breaking
getDefaultBranch()
insaas.go
The text was updated successfully, but these errors were encountered: