Skip to content

Commit

Permalink
[#6] Build project before running snyk.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Gilbert committed Aug 27, 2021
1 parent 5cf91d2 commit 5c851d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ on:
branches: [ master ]

jobs:
build:
security:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/dotnet@master
env:
Expand Down

0 comments on commit 5c851d6

Please sign in to comment.