Skip to content

Security

Security #18

Workflow file for this run

name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Monday at 9:00 UTC
- cron: "0 9 * * 1"
jobs:
dependency-audit:
runs-on: ubuntu-latest
name: Dependency Audit
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pip-audit
# Install only the dependencies, not the local package
pip install PyYAML requests
- name: Run pip-audit
run: pip-audit --strict --progress-spinner off
codeql:
runs-on: ubuntu-latest
name: CodeQL Analysis
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"