Skip to content

Commit

Permalink
test and code test
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Georgalas committed May 17, 2024
1 parent c42c1d9 commit 78cd227
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,30 @@ jobs:
run: |
dotnet msbuild -restore ./InsecureProject.sln
dotnet build ./InsecureProject.sln -m:1
- name: Snyk
- name: Snyk Test
uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif --all-projects --detection-depth=5
- name: Upload result to GitHub Code Scanning
command: test
args: --sarif-file-output=snyk-test.sarif --all-projects --detection-depth=5
- name: Upload Snyk Test to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
sarif_file: snyk-test.sarif
- name: Snyk Code Test
uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: code test
args: --sarif-file-output=snyk-code-test.sarif --all-projects --detection-depth=5
- name: Upload Snyk Code Test to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-code-test.sarif
permissions:
pull-requests: write
contents: write
Expand Down

0 comments on commit 78cd227

Please sign in to comment.