Skip to content

Commit

Permalink
test self install snyk cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sandor-trombitas committed Jul 9, 2024
1 parent 484e6c0 commit f6fb8be
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: Example workflow using Snyk
on: push
jobs:
security:
snyk_scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node2@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
- name: Checkout code
uses: actions/checkout@v2

- name: Install Snyk CLI
run: |
npm install -g snyk
- name: Authenticate Snyk CLI
run: |
snyk auth ${{ secrets.SNYK_TOKEN }}
- name: Run Snyk to test project dependencies
run: |
snyk test

0 comments on commit f6fb8be

Please sign in to comment.