-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (40 loc) · 1.18 KB
/
security-scan-upload.yml
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
name: Security Scan Upload
on:
push:
branches:
- main
jobs:
security-open-source-monitor:
runs-on: ubuntu-latest
environment: snyk-msbuild-envs
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Restore dependencies
run: dotnet restore /home/runner/work/snyk-visual-studio-plugin/snyk-visual-studio-plugin
- name: Run snyk monitor
uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
args:
--all-projects
--exclude=Snyk.VisualStudio.Extension.Tests,Snyk.Common.Tests,Snyk.Code.Library.Tests,Tests
security-code-monitor:
runs-on: ubuntu-latest
environment: snyk-msbuild-envs
steps:
- uses: actions/checkout@v4
- name: Run snyk monitor
uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: code test
args:
--report
--project-name="snyk/${{ github.event.repository.name }}"