mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 00:22:08 -06:00
fix: #180 provide explicit instruction to use vet community mode when auth verify fails
This commit is contained in:
parent
875d96b4f0
commit
bd743347d0
9
scan.go
9
scan.go
@ -154,9 +154,14 @@ func listParsersCommand() *cobra.Command {
|
||||
|
||||
func startScan() {
|
||||
if !disableAuthVerifyBeforeScan {
|
||||
failOnError("auth/verify", auth.Verify(&auth.VerifyConfig{
|
||||
err := auth.Verify(&auth.VerifyConfig{
|
||||
ControlPlaneApiUrl: auth.DefaultControlPlaneApiUrl(),
|
||||
}))
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
failOnError("auth/verify", fmt.Errorf("failed to verify auth token: %v. "+
|
||||
"You may want to setup community mode using: vet auth configure --community", err))
|
||||
}
|
||||
}
|
||||
|
||||
if auth.CommunityMode() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user