[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:
Miccah 2024-08-07 16:10:43 -07:00 committed by GitHub
parent d0726eb949
commit 39f5f547e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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)
}

View file

@ -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")