Skip to content

Commit 67b3ca4

Browse files
author
Gonzalo Diaz
committed
[CONFIG] SNYK script for github-actions.
1 parent 986b439 commit 67b3ca4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/dotnet-snyk.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET Snyk Code analysis
5+
6+
on:
7+
push:
8+
branches: [ main, develop, feature/* ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
name: "Run CI"
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: ["windows-latest"]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: 8.0.x
26+
- name: Restore dependencies
27+
run: dotnet restore --verbosity normal
28+
- name: Run Snyk to check for vulnerabilities
29+
uses: snyk/actions/dotnet@master
30+
env:
31+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)