File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ COPY run_container.ps1 .
2626
2727ENV OPA_PATH="C:\a pp\o pa_windows_amd64.exe"
2828RUN Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe -OutFile $Env:OPA_PATH -UseBasicParsing
29- RUN if ((Get-FileHash $Env:OPA_PATH -Algorithm SHA265 ).Hash -ne (Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe.sha256).Content) { exit 1 }
29+ RUN if ((Get-FileHash $Env:OPA_PATH -Algorithm SHA256 ).Hash -ne (Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe.sha256).Content) { exit 1 }
3030RUN icacls.exe $env:OPA_PATH /grant "User Manager\C ontainerUser" :RX
3131USER ContainerUser
3232
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Foreach ($tenantConfig in $(Get-ChildItem 'input\')) {
4040 AppID = $Env: APP_ID ; # App ID; Needed for Service Principal Auth
4141 Organization = $org ; # primary domain of the tenantConfig needed for Service Principal Auth
4242 OutPath = " .\reports\$ ( $org ) " ; # The folder path where the output will be stored
43- OPAPath = " c:\app\opa_windows_amd64.exe "
43+ OPAPath = $ Env: OPA_PATH
4444 ConfigFilePath = $tenantConfig.FullName
4545 Quiet = $true ;
4646 }
You can’t perform that action at this time.
0 commit comments