Skip to content

Commit 5799386

Browse files
committed
fix hash check
1 parent ca856ac commit 5799386

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

m365/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY run_container.ps1 .
2626

2727
ENV OPA_PATH="C:\app\opa_windows_amd64.exe"
2828
RUN 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 SHA256).Hash -ne (Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe.sha256 -UseBasicParsing.Content)) { exit 1 }
29+
RUN if ((Get-FileHash $Env:OPA_PATH -Algorithm SHA256).Hash -ne ([System.Text.Encoding]::ASCII.GetString((Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe.sha256 -UseBasicParsing).Content) -split " ")[0]) { exit 1 }
3030
RUN icacls.exe $env:OPA_PATH /grant "User Manager\ContainerUser":RX
3131
USER ContainerUser
3232

0 commit comments

Comments
 (0)