Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

build(deps): bump dotnet-stryker from 4.3.0 to 4.4.1 #101

build(deps): bump dotnet-stryker from 4.3.0 to 4.4.1

build(deps): bump dotnet-stryker from 4.3.0 to 4.4.1 #101

name: 'NuGet vulnerabilites'
on:
workflow_dispatch: # To can dispatch manually
# Schedule to run every week on Sunday at 00:00 UTC
schedule:
- cron: '0 0 * * 0'
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- main
env:
SDK_VERSION: '8.0.402'
jobs:
sonar-scanner:
name: "NuGet vulnerabilites"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/[email protected]
- name: "Setup .NET"
uses: actions/[email protected]
with:
dotnet-version: ${{ env.SDK_VERSION }}
- name: "Restore dependencies"
run: dotnet restore
- name: "Build"
run: dotnet build --configuration Release --no-restore
- name: "Checking NuGet vulnerabilites"
run: |
dotnet list package --vulnerable --include-transitive 2>&1 | tee build.log
echo "Analyze dotnet list package command log output..."
grep -q -i "\bcritical\b\|\bhigh\b\|\bmoderate\b\|\blow\b" build.log && { echo "Security Vulnerabilities found on the log output"; exit 1; } || exit 0