Skip to content

Chore: check shasum when installing snyk cli on our workflow #7

Chore: check shasum when installing snyk cli on our workflow

Chore: check shasum when installing snyk cli on our workflow #7

Workflow file for this run

name: Example workflow using Snyk
on: push
jobs:
snyk_scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Snyk CLI
run: |
curl https://static.snyk.io/cli/latest/snyk-linux -o snyk
curl https://static.snyk.io/cli/latest/snyk-linux.sha256 -o snyk.sha256
sha256sum -c snyk.sha256
chmod +x snyk
sudo mv snyk /usr/local/bin/
- name: Authenticate Snyk CLI
run: |
snyk auth ${{ secrets.SNYK_TOKEN }}
- name: Run Snyk to test project dependencies
run: |
snyk test