Merge pull request #3554 from O5ten/patch-1

Fix missing authentication in GitHubUrlReader
This commit is contained in:
Fredrik Adelöw
2020-12-04 09:37:48 +01:00
committed by GitHub
@@ -196,6 +196,7 @@ export class GithubUrlReader implements UrlReader {
new URL(
`${protocol}://${resource}/${full_name}/archive/${ref}.tar.gz`,
).toString(),
getRawRequestOptions(this.config),
);
if (!response.ok) {
const message = `Failed to read tree from ${url}, ${response.status} ${response.statusText}`;