Skip to content

Commit

Permalink
🐛 ensure we use the credential token for gitlab scan
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey committed Sep 19, 2023
1 parent cc3ce67 commit 84307a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions motor/discovery/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func (r *Resolver) Resolve(ctx context.Context, root *asset.Asset, pCfg *provide
if err != nil {
return nil, err
}
rootToken, err := credsResolver.GetCredential(root.Connections[0].Credentials[0])
if err == nil && rootToken != nil {
pCfg.Credentials = []*vault.Credential{rootToken}
}

defaultName := root.Name
list := []*asset.Asset{}
Expand Down

0 comments on commit 84307a0

Please sign in to comment.