mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[analyze] Fix double-print in postgres analyzer (#3199)
* [analyze] Fix double-print in postgres analyzer * Continue on error in github analyzer
This commit is contained in:
parent
d0726eb949
commit
39f5f547e1
2 changed files with 2 additions and 3 deletions
|
@ -1240,7 +1240,8 @@ func analyzeUserPermissions(client *gh.Client, user *gh.User) ([]Permission, err
|
|||
for _, permFunc := range acctPermFuncMap {
|
||||
access, err := permFunc(client, user)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
// TODO: Log error.
|
||||
continue
|
||||
}
|
||||
perms = append(perms, access)
|
||||
}
|
||||
|
|
|
@ -86,8 +86,6 @@ func AnalyzeAndPrintPermissions(cfg *config.Config, connectionStr string) {
|
|||
color.Yellow("[!] Successfully connected to Postgres database.")
|
||||
printUserRoleAndPriv(info.Role, info.RolePrivs)
|
||||
|
||||
printDBPrivs(info.DBs, info.User)
|
||||
|
||||
// Print db privs
|
||||
if len(info.DBs) > 0 {
|
||||
fmt.Print("\n\n")
|
||||
|
|
Loading…
Reference in a new issue