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

Commit 758f56a

Browse files
committed
Add username field to secure repos
Signed-off-by: Edward Buckle <[email protected]>
1 parent 992b3c5 commit 758f56a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pfe/portal/modules/Templates.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ async function constructRepositoryObject(url, description, name, isRepoProtected
324324
if (isRepoProtected !== undefined) {
325325
repository.protected = isRepoProtected;
326326
}
327+
if (gitCredentials && gitCredentials.username) {
328+
repository.authentication = { username: gitCredentials.username };
329+
}
327330
return repository;
328331
}
329332

0 commit comments

Comments
 (0)