mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 22:27:20 +02:00
fix: restore public file streaming and contain ZIP failures
This commit is contained in:
1 parent
ecba15ce2e
commit
c9c729c2c5
7 files changed
+226
-22
No files matched your search
@@ -12,6 +12,7 @@ import User from "../../core/User";
|
||||
import { streamAnonymizedZip } from "../../core/zipStream";
|
||||
import FileModel from "../../core/model/files/files.model";
|
||||
import { createLogger, serializeError } from "../../core/logger";
|
||||
import { githubTokenForStreamer } from "../../core/github-token-context";
|
||||
import gh = require("parse-github-url");
|
||||
|
||||
const logger = createLogger("repository-public");
|
||||
@@ -62,7 +63,7 @@ router.get(
|
||||
.stream(join(config.STREAMER_ENTRYPOINT, "api/download"), {
|
||||
method: "POST",
|
||||
json: {
|
||||
token,
|
||||
token: await githubTokenForStreamer(token, repo.model.source.repositoryName),
|
||||
repoFullName: repo.model.source.repositoryName,
|
||||
commit: repo.model.source.commit,
|
||||
branch: repo.model.source.branch,
|
||||
|
||||
Reference in new issue
Block a user