diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 51ccb82..e455d42 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file