signal-desktop/.github/workflows/snyk.yml
Ewout ter Hoeven 8d3d51314e
CI: Maintenance, update checkout, setup-node and cache to v2 (#4813)
- Run on PRs
- Use v2 of checkout, setup-node and cache (for faster performance)
2021-02-04 15:00:02 -08:00

28 lines
666 B
YAML

# Copyright 2020-2021 Signal Messenger, LLC
# SPDX-License-Identifier: AGPL-3.0-only
name: Snyk
on:
schedule:
- cron: '0 12 * * *'
jobs:
snyk:
runs-on: ubuntu-latest
if: github.repository != 'signalapp/Signal-Desktop'
steps:
- run: lsb_release -a
- run: uname -a
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: npm install -g yarn@1.22.0
- run: npm install -g snyk@1.316.1
- run: yarn install --frozen-lockfile
- run: snyk auth "$SNYK_TOKEN"
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- run: snyk test --show-vulnerable-paths=all