From ca17cffee6ffa4255b7087d4d949ea737de3a804 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Thu, 28 May 2026 16:55:19 +0330 Subject: [PATCH] fix(ci): write NuGet config inline to allow HTTP source (NU1302) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NuGet 10 blocks HTTP sources by default. allowInsecureConnections=true must be set in a config file — the --source CLI flag doesn't support it. Write the config to /tmp/nuget.ci.config inline in the step so there is no dependency on any file existing in the workspace. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci-cd.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 12e04b6..a74fc6a 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -74,7 +74,18 @@ jobs: git checkout FETCH_HEAD - name: Restore - run: dotnet restore src/Meezi.API/Meezi.API.csproj --source http://mirror:8081/repository/nuget-group/index.json + run: | + cat > /tmp/nuget.ci.config << 'EOF' + + + + + + + + EOF + dotnet restore src/Meezi.API/Meezi.API.csproj --configfile /tmp/nuget.ci.config - name: Build run: dotnet build src/Meezi.API/Meezi.API.csproj --no-restore -c Release @@ -107,7 +118,18 @@ jobs: git checkout FETCH_HEAD - name: Restore - run: dotnet restore src/Meezi.Admin.API/Meezi.Admin.API.csproj --source http://mirror:8081/repository/nuget-group/index.json + run: | + cat > /tmp/nuget.ci.config << 'EOF' + + + + + + + + EOF + dotnet restore src/Meezi.Admin.API/Meezi.Admin.API.csproj --configfile /tmp/nuget.ci.config - name: Build run: dotnet build src/Meezi.Admin.API/Meezi.Admin.API.csproj --no-restore -c Release