Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function getZipFromUrl(artifactArchiveUrl: string, strictSSL: boolean, localPathRoot: string, handler: handlers.BasicCredentialHandler) {
console.log(tl.loc('ArtifactDownloadUrl', artifactArchiveUrl));
var downloaderOptions = configureDownloaderOptions();
var downloader = new engine.ArtifactEngine();
var zipProvider = new providers.ZipProvider(artifactArchiveUrl, handler, { ignoreSslError: !strictSSL });
var filesystemProvider = new providers.FilesystemProvider(localPathRoot);
await downloader.processItems(zipProvider, filesystemProvider, downloaderOptions)
}
async function getZipFromUrl(artifactArchiveUrl: string, localPathRoot: string, handler: webHandlers.PersonalAccessTokenCredentialHandler, downloaderOptions: engine.ArtifactEngineOptions) {
var downloader = new engine.ArtifactEngine();
var zipProvider = new providers.ZipProvider(artifactArchiveUrl, handler);
var filesystemProvider = new providers.FilesystemProvider(localPathRoot);
await downloader.processItems(zipProvider, filesystemProvider, downloaderOptions)
}