Skip to content

Commit 23c04f3

Browse files
committed
Add workflow to scan for vulnerable dependencies
1 parent 5cd0b82 commit 23c04f3

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-4
lines changed

.github/workflows/Steeltoe.All.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
branches:
77
- main
88
- '[0-9]+.x'
9-
- 'release/*'
109
pull_request:
1110

1211
concurrency:

.github/workflows/package.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
branches:
77
- main
88
- '[0-9]+.x'
9-
- 'release/*'
109
pull_request:
1110
release:
1211
types:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Scan vulnerable dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- '[0-9]+.x'
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
env:
19+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
20+
DOTNET_NOLOGO: true
21+
SOLUTION_FILE: 'src/Steeltoe.All.sln'
22+
23+
jobs:
24+
scan:
25+
name: Scan
26+
timeout-minutes: 15
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Setup .NET
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: |
34+
8.0.*
35+
9.0.*
36+
37+
- name: Git checkout
38+
uses: actions/checkout@v4
39+
40+
- name: Report vulnerable dependencies
41+
run: dotnet restore ${{ env.SOLUTION_FILE }} --verbosity minimal /p:NuGetAudit=true /p:NuGetAuditMode=all /p:NuGetAuditLevel=low /p:TreatWarningsAsErrors=True

.github/workflows/sonarcube.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
branches:
77
- main
88
- '[0-9]+.x'
9-
- 'release/*'
109
pull_request:
1110
types: [opened, synchronize, reopened]
1211

.github/workflows/verify-code-style.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
branches:
77
- main
88
- '[0-9]+.x'
9-
- 'release/*'
109
pull_request:
1110

1211
concurrency:

0 commit comments

Comments
 (0)