Skip to content

Dylan Fixing Issues #67

Dylan Fixing Issues

Dylan Fixing Issues #67

Workflow file for this run

name: "Snyk Scan"
on:
push:
branches:
- 'demo*' # Include any branch starting with demo
jobs:
Pipeline-Job:
# Configure Environment
name: 'Snyk Scan'
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-delta
snyk auth ${SNYK_TOKEN}
# Run Snyk Code
- name: Run Snyk Code
run: |
snyk code test --report --project-name="GH_ACTION_CI" --severity-threshold=high
continue-on-error: true
# Run Snyk OS
- name: Run Snyk OS Delta
run: |
snyk test --json --print-deps | snyk-delta --baselineOrg 6d36ac7a-c75b-4179-8e73-6dd4d3fc8343 --baselineProject bf085e07-0ca2-4cb4-b345-92ad4178b1e2 --setPassIfNoBaseline true
continue-on-error: true
- name: Run Snyk OS Delta
run: |
snyk test --json | snyk-filter -f /filters/example-cvss-9-or-above.yml --Org=6d36ac7a-c75b-4179-8e73-6dd4d3fc8343
continue-on-error: true