Harden repository for v1.3.0-beta.1 #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dependency security review | |
| on: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: dependency-security-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| jobs: | |
| dependency-security: | |
| name: Audit dependency changes | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 12 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Blocking NuGet high/critical vulnerability audit | |
| shell: bash | |
| run: | | |
| dotnet restore ./ProcessBusSuite.sln \ | |
| -p:NuGetAudit=true \ | |
| -p:NuGetAuditMode=all \ | |
| '-p:WarningsAsErrors=NU1903;NU1904' | |
| - name: GitHub dependency delta review | |
| id: github-dependency-review | |
| continue-on-error: true | |
| uses: actions/dependency-review-action@v5 | |
| with: | |
| fail-on-severity: high | |
| retry-on-snapshot-warnings: true | |
| retry-on-snapshot-warnings-timeout: 180 | |
| - name: Report dependency graph availability | |
| if: always() | |
| shell: bash | |
| run: | | |
| if [ "${{ steps.github-dependency-review.outcome }}" != "success" ]; then | |
| echo "::warning::GitHub dependency delta review could not complete. The blocking NuGet high/critical vulnerability audit passed. Enable Repository Settings > Security & analysis > Dependency graph, then remove continue-on-error from this workflow." | |
| fi |