Snyk #6
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 | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 9 * * 1" # runs each Monday at 9:00 UTC | ||
permissions: | ||
contents: read | ||
security-events: write | ||
jobs: | ||
security: | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install All Requirements | ||
run: make install | ||
- name: Run Snyk to check for vulnerabilities | ||
run: snyk test --all-projects --detection-depth=5 --severity-threshold=high | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --all-projects --detection-depth=5 --severity-threshold=high |