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
54 changes: 54 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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"
Loading