in src/ContainerRegistryHelper.ts [30:39]
public async loginAcrWithAccessTokenAsync(acrName: string) {
toolHelper.writeDebug(`Attempting to log in to ACR instance "${acrName}" with access token`);
try {
let commandLine = os.platform() === 'win32' ? 'pwsh' : 'bash';
await util.execute(`${commandLine} -c "CA_ADO_TASK_ACR_ACCESS_TOKEN=$(az acr login --name ${acrName} --output json --expose-token --only-show-errors | jq -r '.accessToken'); docker login ${acrName}.azurecr.io -u 00000000-0000-0000-0000-000000000000 -p $CA_ADO_TASK_ACR_ACCESS_TOKEN > /dev/null 2>&1"`);
} catch (err) {
toolHelper.writeError(`Failed to log in to ACR instance "${acrName}" with access token`)
throw err;
}
}