-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (59 loc) · 1.74 KB
/
Copy pathdependency-review.yml
File metadata and controls
71 lines (59 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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:
nuget-audit:
name: NuGet vulnerability audit
runs-on: ubuntu-latest
timeout-minutes: 8
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Run high/critical vulnerability audit
id: nuget-audit
continue-on-error: true
shell: bash
run: |
set -o pipefail
dotnet restore ./ProcessBusSuite.sln \
-p:AuditPipeline=true \
-p:EnableWindowsTargeting=true \
2>&1 | tee nuget-audit.log
- name: Upload audit evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: nuget-audit-${{ github.run_id }}
path: nuget-audit.log
if-no-files-found: error
retention-days: 14
- name: Enforce audit result
if: steps.nuget-audit.outcome != 'success'
shell: bash
run: |
echo "NuGet high/critical vulnerability audit failed. See the uploaded nuget-audit artifact."
exit 1
github-dependency-review:
name: GitHub dependency delta review
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: Review dependency changes
uses: actions/dependency-review-action@v5
with:
fail-on-severity: high
retry-on-snapshot-warnings: true
retry-on-snapshot-warnings-timeout: 180