Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add username field to secure repos
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Buckle <edward.buckle0@gmail.com>
  • Loading branch information
ebuckle committed Jun 10, 2020
1 parent 992b3c5 commit 758f56a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pfe/portal/modules/Templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ async function constructRepositoryObject(url, description, name, isRepoProtected
if (isRepoProtected !== undefined) {
repository.protected = isRepoProtected;
}
if (gitCredentials && gitCredentials.username) {
repository.authentication = { username: gitCredentials.username };
}
return repository;
}

Expand Down

0 comments on commit 758f56a

Please sign in to comment.