mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Fix slice initialization error (#3293)
This commit is contained in:
parent
dc9c9a30b3
commit
07dc95dd58
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ func AnalyzePermissions(cfg *config.Config, key string) (*SecretInfo, error) {
|
|||
}
|
||||
|
||||
func convertScopeToAnalyzerPermissions(scopes []string) []analyzers.Permission {
|
||||
permissions := make([]analyzers.Permission, len(scopes))
|
||||
permissions := make([]analyzers.Permission, 0, len(scopes))
|
||||
for _, scope := range scopes {
|
||||
permissions = append(permissions, analyzers.Permission{Value: scope})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue