diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6a4b210a99a..19627b4e58a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -108,7 +108,17 @@ jobs: - name: Trust HTTPS development certificate (Linux) if: inputs.os == 'ubuntu-latest' - run: ${{ env.DOTNET_SCRIPT }} dev-certs https --trust + # Allow the task to succeed on partial trust. + # Remove this workaround once https://github.com/dotnet/aspnetcore/pull/65392 has shipped + run: | + EXIT_CODE=0 + ${{ env.DOTNET_SCRIPT }} dev-certs https --trust || EXIT_CODE=$? + if [ $EXIT_CODE -ne 0 ] && [ $EXIT_CODE -ne 4 ]; then + echo "dev-certs https --trust failed with exit code $EXIT_CODE" + exit $EXIT_CODE + fi + env: + WSL_INTEROP: "" - name: Verify Docker is running # nested docker containers not supported on windows