Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ sudo apt-get update && \
sudo rm -rf /var/lib/apt/lists/*

echo Install .NET dev certs
dotnet dev-certs https --trust
EXIT_CODE=0
PARTIAL_TRUST_EXIT_CODE=4 # Exit code 4 indicates "partial trust" per aspnetcore#65391.
dotnet dev-certs https --trust || EXIT_CODE=$?
if [ "$EXIT_CODE" -ne 0 ] && [ "$EXIT_CODE" -ne "$PARTIAL_TRUST_EXIT_CODE" ]; then
echo "dotnet dev-certs https --trust failed with exit code $EXIT_CODE"
exit "$EXIT_CODE"
fi

echo Install Aspire
curl -sSL https://aspire.dev/install.sh | bash
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/setup-runtimes-caching/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ runs:
shell: bash
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
dotnet dev-certs https --trust
EXIT_CODE=0
dotnet dev-certs https --trust || EXIT_CODE=$?
PARTIAL_TRUST_EXIT_CODE=4 # See aspnetcore#65391: exit code 4 indicates partial trust
if [ "$EXIT_CODE" -ne 0 ] && [ "$EXIT_CODE" -ne "$PARTIAL_TRUST_EXIT_CODE" ]; then
echo "dotnet dev-certs https --trust failed with exit code $EXIT_CODE"
exit "$EXIT_CODE"
fi

- name: Setup Node globals
shell: bash
Expand Down
Loading