diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index e0e7e8021..51bbf70ad 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -48,7 +48,9 @@ jobs: - name: Decompressing PSTools files run: tar -zvxf "${{ steps.download-pstools.outputs.file-path }}" -C ${{ env.downloadPath }} - - run: Get-ACL -Path ${{ github.workspace }} + - run: | + $Acl = Get-Acl -Path 'C:\windows\system32' + Set-Acl -AclObject $Acl -Path ${{ github.workspace }} - run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s powershell.exe -command "dir ${{ github.workspace }}" - name: Test run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s powershell.exe -command "go test -timeout 5m -p 1 ${{ github.workspace }}\..." \ No newline at end of file