File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9090 name : Publish to NuGet
9191 runs-on : ubuntu-latest
9292 needs : build
93- if : github.ref == 'refs/heads/main'
93+ if : github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release]')
9494 permissions :
9595 contents : read
9696 packages : write
@@ -269,19 +269,25 @@ jobs:
269269 dotnet-version : ${{ env.DOTNET_VERSION }}
270270
271271 - name : Restore dependencies
272- run : dotnet restore
272+ run : |
273+ dotnet restore
274+ dotnet restore examples/WebAPI/SmartRAG.API.csproj
273275
274276 - name : Run security scan
275277 run : |
278+ echo "Checking for vulnerable packages..."
276279 dotnet list package --vulnerable
280+ echo "Checking for outdated packages..."
277281 dotnet outdated --upgrade
278282
279283 - name : Run CodeQL Analysis
284+ continue-on-error : true
280285 uses : github/codeql-action/init@v3
281286 with :
282287 languages : csharp
283288
284289 - name : Perform CodeQL Analysis
290+ continue-on-error : true
285291 uses : github/codeql-action/analyze@v3
286292
287293
You can’t perform that action at this time.
0 commit comments