Skip to content

test-action-snyk-actions #854

test-action-snyk-actions

test-action-snyk-actions #854

name: test-action-snyk-actions
# All Snyk GitHub Actions support integration with GitHub Code Scanning to show vulnerability information in the GitHub Security tab.
on:
push:
paths:
- .github/workflows/test-action-snyk-actions.yaml
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
jobs:
security-1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/python-3.10@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test -d
security-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/python-3.10@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --severity-threshold=high --sarif-file-output=snyk.sarif
command: test -d
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif