Skip to content

Commit

Permalink
GitHub Action: Scan Nuget Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
phongnguyend committed Sep 10, 2024
1 parent dcf68c8 commit acbece2
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/scan-dependencies-microservices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Scan Dependencies Microservices

on:
push:
paths:
- 'src/Microservices/**'
pull_request:
paths:
- 'src/Microservices/**'
schedule:
- cron: '0 * * * *'

jobs:
build:

defaults:
run:
working-directory: src/Microservices

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100

- name: dotnet restore
run: dotnet restore

- name: dotnet list package --vulnerable
run: dotnet list package --vulnerable
33 changes: 33 additions & 0 deletions .github/workflows/scan-dependencies-modularmonolith.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Scan Dependencies Modular Monolith

on:
push:
paths:
- 'src/ModularMonolith/**'
pull_request:
paths:
- 'src/ModularMonolith/**'
schedule:
- cron: '0 * * * *'

jobs:
build:

defaults:
run:
working-directory: src/ModularMonolith

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100

- name: dotnet restore
run: dotnet restore

- name: dotnet list package --vulnerable
run: dotnet list package --vulnerable
33 changes: 33 additions & 0 deletions .github/workflows/scan-dependencies-monolith.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Scan Dependencies Monolith

on:
push:
paths:
- 'src/Monolith/**'
pull_request:
paths:
- 'src/Monolith/**'
schedule:
- cron: '0 * * * *'

jobs:
build:

defaults:
run:
working-directory: src/Monolith

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100

- name: dotnet restore
run: dotnet restore

- name: dotnet list package --vulnerable
run: dotnet list package --vulnerable

0 comments on commit acbece2

Please sign in to comment.