Skip to content

Update azure-pipelines.yml for Azure Pipelines #159

Update azure-pipelines.yml for Azure Pipelines

Update azure-pipelines.yml for Azure Pipelines #159

name: Example workflow for Node using Snyk
on: push
jobs:
security:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/setup@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: true
- name: Install snyk-delta
run: |
npm i -g snyk-delta
- name: Run snyk-delta
run: |
snyk auth ${{ secrets.SNYK_TOKEN }}
snyk test --json --print-deps | snyk-delta