Skip to content

Commit

Permalink
Update snyk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Nov 7, 2023
1 parent 00c5caf commit 3ab4510
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ jobs:
# with:
# ref: ${{ github.event.pull_request.merge_commit_sha || github.ref }} # TODO Change this back

# - uses: ./.github/actions/build
# - name: Install .NET Core
# uses: actions/setup-dotnet@v3
# with:
# solution-path: Sample\Auth0MauiApp.sln
# dotnet-version: "7.0.402"

# - run: |
# dotnet restore
# dotnet build

# Install Scoop, Snyk's Scoop bucket, and the Snyk CLI.
- shell: pwsh
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop --version
Expand All @@ -58,12 +64,12 @@ jobs:
# Check that project is registered with Snyk when triggered from main branch
- if: github.ref == 'refs/heads/main'
continue-on-error: true
run: snyk monitor
run: ~\scoop\apps\snyk\current\snyk monitor
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

# Report vulnerabilities
- run: snyk test
- run: ~\scoop\apps\snyk\current\snyk test
working-directory: Sample
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 3ab4510

Please sign in to comment.