Skip to content

Version warning with output set to none #605

Description

@daniloesk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions