diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 159ca2888f..10b812ef81 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -1,11 +1,23 @@ name: Example workflow for Node using Snyk on: push jobs: - security: + snyk: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + - name: Run Snyk to check for vulnerabilities uses: snyk/actions/node@master + with: + command: test env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} \ No newline at end of file