Username/Password fields on analyse repo mask
This commit is contained in:
parent
345aeaf353
commit
64be789b13
5 changed files with 32 additions and 3 deletions
|
|
@ -120,6 +120,8 @@ class RegistryService:
|
|||
repository_id: int,
|
||||
*,
|
||||
source_path: str | None = None,
|
||||
access_username: str | None = None,
|
||||
access_password: str | None = None,
|
||||
) -> ScanSummary:
|
||||
repository = self.store.get_repository(repository_id)
|
||||
run = self.store.create_analysis_run(repository_id)
|
||||
|
|
@ -132,7 +134,12 @@ class RegistryService:
|
|||
)
|
||||
try:
|
||||
if source_path is None:
|
||||
checkout = self.ingestion.resolve(repository.url, branch=repository.branch)
|
||||
checkout = self.ingestion.resolve(
|
||||
repository.url,
|
||||
branch=repository.branch,
|
||||
access_username=access_username,
|
||||
access_password=access_password,
|
||||
)
|
||||
scan_source = checkout.source_path
|
||||
else:
|
||||
scan_source = source_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue