always use githubStream

This commit is contained in:
tdurieux committed 2026-05-04 10:47:58 +02:00
1 parent 59d9805276
commit 3f095f0734
3 files changed
+19 -41

No files matched your search

+8 -1
View File
@@ -106,7 +106,14 @@ async function main() {
console.info(
`[INFO] Downloading repository: ${repository.model.source.repositoryName} from branch ${repository.model.source.branch} and commit ${repository.model.source.commit}...`
);
await (repository.source as GitHubDownload).download(inq.token);
const cliDownload = new GitHubDownload({
repoId: repository.repoId,
organization: ghURL.owner,
repoName: ghURL.name,
commit: branch?.commit || "HEAD",
getToken: () => inq.token,
});
await cliDownload.download(inq.token);
const outputFileName = join(inq.output, generateRandomFileName(8) + ".zip");
console.info("[INFO] Anonymizing repository and creation zip file...");
await writeFile(outputFileName, await repository.zip());