Merge pull request #38 from eftanzer/snyk-fix-909ee37eae95db434af7199… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Snyk Test" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Pipeline-Job: | |
# Configure Environment | |
name: 'Snyk Test' | |
runs-on: ubuntu-latest | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
steps: | |
# Checkout Code | |
- name: Checkout Code | |
uses: actions/checkout@v1 | |
# Install and Authenticate to Snyk | |
- name: Install Snyk & Authenticate | |
run: | | |
sudo npm install -g snyk | |
sudo npm install -g snyk-to-html | |
npm install | |
continue-on-error: true | |
# Run Snyk Open Source | |
- name: Run Snyk Open Source | |
run: | | |
snyk test --severity-threshold=medium |