Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async initializeForPublishProfile() {
let scmCreds: scmCredentials;
try {
scmCreds = await this.getCredsFromXml(TaskParameters.getTaskParams().publishProfileContent);
} catch(error) {
core.error("Failed to fetch credentials from Publish Profile. For more details on how to set publish profile credentials refer https://aka.ms/create-secrets-for-GitHub-workflows");
throw error;
}
this.kuduService = new Kudu(scmCreds.uri, scmCreds.username, scmCreds.password);
this.kuduServiceUtility = new KuduServiceUtility(this.kuduService);
}
return __awaiter(this, void 0, void 0, function* () {
let scmCreds;
try {
scmCreds = yield this.getCredsFromXml(taskparameters_1.TaskParameters.getTaskParams().publishProfileContent);
}
catch (error) {
core.error("Failed to fetch credentials from Publish Profile. For more details on how to set publish profile credentials refer https://aka.ms/create-secrets-for-GitHub-workflows");
throw error;
}
this.kuduService = new azure_app_kudu_service_1.Kudu(scmCreds.uri, scmCreds.username, scmCreds.password);
this.kuduServiceUtility = new KuduServiceUtility_1.KuduServiceUtility(this.kuduService);
});
}