According to the documentation it is a security recommendation to set AZURE_CORE_OUTPUT variable to "none".
But by doing so a "Failed to parse Azure CLI version" warning is recorded due to the block:
|
await this.executeAzCliCommand(["version"], true, execOptions); |
|
core.debug(`Azure CLI version used:\n${output}`); |
|
try { |
|
this.azVersion = JSON.parse(output)["azure-cli"]; |
|
} |
|
catch (error) { |
|
core.warning("Failed to parse Azure CLI version."); |
|
} |
Since this command requires the JSON output it could have an explicit json output format argument. It should be safe since the ouput is captured by the script.
Or perhaps the warning could be changed into a debug message.
According to the documentation it is a security recommendation to set AZURE_CORE_OUTPUT variable to "none".
But by doing so a "Failed to parse Azure CLI version" warning is recorded due to the block:
login/src/Cli/AzureCliLogin.ts
Lines 32 to 39 in 833e823
Since this command requires the JSON output it could have an explicit json output format argument. It should be safe since the ouput is captured by the script.
Or perhaps the warning could be changed into a debug message.