diff --git a/docs/03-common/08-cli-tools.md b/docs/03-common/08-cli-tools.md index e8842501e..277d16f66 100644 --- a/docs/03-common/08-cli-tools.md +++ b/docs/03-common/08-cli-tools.md @@ -186,13 +186,20 @@ This example will always have 5 packages being pushed simultaneously. Possible e ### Custom Arguments -It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessArgumentConfigurator` method can be used to add them manually: +It may happen that certain arguments are not available from the fluent interface. In this case, the `SetProcessAdditionalArguments` or `AddProcessAdditionalArguments` methods can be used to add them manually: ```csharp MSBuildTasks.MSBuild(_ => _ .SetTargetPath(SolutionFile) - .SetProcessArgumentConfigurator(_ => _ - .Add("/r"))); + .SetProcessAdditionalArguments( "/r" )); +``` + +If secrets are involved, add them with the `AddProcessRedactedSecrets` first: + +```csharp +SonarScannerTasks.SonarScannerBegin(_ => _ + .AddProcessRedactedSecrets( Secrets.SonarQubeAccessToken ) + .AddProcessAdditionalArguments( $"/d:sonar.login={Secrets.SonarQubeAccessToken}")); ``` ### Exit Code Handling