Skip to content

Tue Jun 11 09:05:12 PDT 2024 Updating release notes, duh #18

Tue Jun 11 09:05:12 PDT 2024 Updating release notes, duh

Tue Jun 11 09:05:12 PDT 2024 Updating release notes, duh #18

Workflow file for this run

name: Snyk Security
on:
push:
branches: ["next", "main" ]
permissions:
contents: read
jobs:
snyk:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set up Snyk CLI to check for security issues
uses: snyk/actions/python-3.10@master
env:
# This is where you will need to introduce the Snyk API token created with your Snyk account
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG: ${{ secrets.SNYK_ORG }}
with:
args: --severity-threshold=high --sarif-file-output=snyk.sarif
- name: Setup Snyk
uses: snyk/actions/setup@master
- name: Snyk Open Source monitor
run: snyk monitor --all-projects
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG: ${{ secrets.SNYK_ORG }}
# Push the Snyk Code results into GitHub Code Scanning tab
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif