Skip to content

Commit

Permalink
Secure workflow strategy for Azure CLI output configuration (#119)
Browse files Browse the repository at this point in the history
* add warning for cli output

* update

* update
  • Loading branch information
MoChilia authored Oct 25, 2023
1 parent b0e31ae commit 7218e59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Please note that the action executes Az CLI script in a docker container. This m
1. If script sets up an environment variable, it will not take effect in host and hence subsequent actions shouldn't rely on such environment variable.
2. There is some restriction on how cross action file read/write is done. GITHUB_WORKSPACE directory in host is mapped to working directory inside container. So, if the action wants to create a file, which will be read by subsequent actions, it should do so within current working directory tree.

> [!WARNING]
> By default, the output of Azure CLI commands print to the stdout stream and are stored in the build logs of the action. Configure Azure CLI to _not_ show output in the console screen or print in the log by setting the environment variable `AZURE_CORE_OUTPUT` to `none`. If you need the output of a specific command, override the default setting using the argument `--output` with your format of choice. For more information on output options with the Azure CLI, see [Format output](https://learn.microsoft.com/cli/azure/format-output-azure-cli).
## Sample workflow

### Dependencies on other GitHub Actions
Expand Down

0 comments on commit 7218e59

Please sign in to comment.