Skip to content

Commit

Permalink
Snyk scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Georgalas committed May 17, 2024
1 parent ebb1e62 commit 1297eb2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,24 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Build, test, and analyze
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
shell: bash
run: |
dotnet msbuild -restore ./InsecureProject.sln
dotnet build ./InsecureProject.sln -m:1
- name: Snyk
uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
permissions:
pull-requests: write
contents: write
10 changes: 10 additions & 0 deletions .idea/.idea.InsecureProject/.idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1297eb2

Please sign in to comment.