Skip to content

Commit 275fe9d

Browse files
sca-scan.yml
1 parent b1a34fc commit 275fe9d

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/sca-scan.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ on:
33
pull_request:
44
types: [opened, synchronize, reopened]
55
jobs:
6-
security:
6+
security-sca:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@master
11-
- uses: snyk/actions/setup@master
12-
- name: Setup .NET
13-
uses: actions/setup-dotnet@v3.0.3
14-
- name: Restore dependencies
15-
run: dotnet restore ./Contentstack.Utils.sln
9+
- uses: actions/checkout@master
1610
- name: Run Snyk to check for vulnerabilities
17-
run: cd Contentstack.Utils && snyk test --fail-on=all
11+
uses: snyk/actions/dotnet@master
1812
env:
1913
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
14+
with:
15+
args: --fail-on=all

0 commit comments

Comments
 (0)