Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Snyk

on:
merge_group:
workflow_dispatch:
pull_request:
types:
- opened
Expand All @@ -10,19 +11,19 @@ on:
branches:
- master
schedule:
- cron: "30 0 1,15 * *"
- cron: '30 0 1,15 * *'

permissions:
security-events: write
actions: read
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:

check:

name: Check for Vulnerabilities
runs-on: ubuntu-latest

Expand All @@ -34,14 +35,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- uses: snyk/actions/python-3.8@cdb760004ba9ea4d525f2e043745dfe85bb9077e # pinned 2023-06-13
continue-on-error: true # Make sure the SARIF upload is called
- uses: snyk/actions/python@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}