Skip to content

Commit 4e0edd1

Browse files
authored
Secure workflow strategy for Azure CLI output configuration (#356)
* add warning for cli output * update * update
1 parent 8bf3bde commit 4e0edd1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Note:
2525
- Ensure the CLI version is 2.30 or above to use OIDC support.
2626
- By default, Azure access tokens issued during OIDC based login could have limited validity. Azure access token issued by AD App (Service Principal) is expected to have an expiration of 1 hour by default. And with Managed Identities, it would be 24 hrs. This expiration time is further configurable in Azure. Refer to [access-token lifetime](https://learn.microsoft.com/en-us/azure/active-directory/develop/access-tokens#access-token-lifetime) for more details.
2727

28+
> [!WARNING]
29+
> 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).
30+
2831
## Sample workflow that uses Azure login action to run az cli
2932

3033
```yaml

0 commit comments

Comments
 (0)