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 <[email protected]>
  • Loading branch information
ebuckle committed Jun 10, 2020
1 parent 992b3c5 commit 3b5065b
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 @@ -323,6 +323,9 @@ async function constructRepositoryObject(url, description, name, isRepoProtected
repository = await fetchRepositoryDetails(repository, gitCredentials);
if (isRepoProtected !== undefined) {
repository.protected = isRepoProtected;
if (gitCredentials && isRepoProtected) {
repository.authentication = { username: gitCredentials.username };
}
}
return repository;
}
Expand Down

0 comments on commit 3b5065b

Please sign in to comment.