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 3ab4510 commit 7aa639c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,20 @@ jobs:
- shell: pwsh
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
iwr get.scoop.sh | iex
scoop --version
scoop bucket add snyk https://github.com/snyk/scoop-snyk
scoop install snyk
# Check that project is registered with Snyk when triggered from main branch
- if: github.ref == 'refs/heads/main'
continue-on-error: true
run: ~\scoop\apps\snyk\current\snyk monitor
run: snyk monitor
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

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

0 comments on commit 7aa639c

Please sign in to comment.