Add github credentials API and cli code
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
77ecb16166
commit
eadbe784b9
28 changed files with 2364 additions and 175 deletions
|
|
@ -297,6 +297,7 @@ func (s *sqlDatabase) migrateCredentialsToDB() (err error) {
|
|||
credParams := params.CreateGithubCredentialsParams{
|
||||
Name: cred.Name,
|
||||
Description: cred.Description,
|
||||
Endpoint: endpoint.Name,
|
||||
AuthType: params.GithubAuthType(cred.GetAuthType()),
|
||||
}
|
||||
switch credParams.AuthType {
|
||||
|
|
@ -327,7 +328,7 @@ func (s *sqlDatabase) migrateCredentialsToDB() (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
creds, err := s.CreateGithubCredentials(adminCtx, endpoint.Name, credParams)
|
||||
creds, err := s.CreateGithubCredentials(adminCtx, credParams)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "creating github credentials")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue