Skip to content

Commit

Permalink
Fix build.ps1, failing in security tools (#384)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Fix build.ps1, failing in security tools

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes AB#492601, Fixes AB#492573
  • Loading branch information
mazhelez authored Nov 29, 2023
1 parent 22fbce3 commit aa4a54b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.\build.ps1 -ALGoProject "System Application"
.\build.ps1 -ALGoProject "Test Stability Tools" -AutoFill
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification = 'local build')]
param
(
[Parameter(Mandatory=$true)]
Expand All @@ -28,9 +29,8 @@ if (-not (Get-Module -ListAvailable -Name "BCContainerHelper")) {
if ($AutoFill) {
Add-Type -AssemblyName System.Web

$password = [System.Web.Security.Membership]::GeneratePassword(20, 5)
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', Justification = 'local build')]
$credential = New-Object -TypeName pscredential -ArgumentList admin, ConvertTo-SecureString -String $password -AsPlainText -Force
[securestring] $securePassword = ConvertTo-SecureString -String $([System.Web.Security.Membership]::GeneratePassword(20, 5)) -AsPlainText -Force
$credential = New-Object -TypeName pscredential -ArgumentList admin, $securePassword
$licenseFileUrl = 'none'
$containerName = "bcserver"
$auth = "UserPassword"
Expand Down

0 comments on commit aa4a54b

Please sign in to comment.