Skip to content

Add Apache-2.0 license metadata to pyproject.toml (#19) #94

Add Apache-2.0 license metadata to pyproject.toml (#19)

Add Apache-2.0 license metadata to pyproject.toml (#19) #94

Workflow file for this run

name: Security

Check failure on line 1 in .github/workflows/security.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/security.yml

Invalid workflow file

(Line: 22, Col: 7): Unexpected value 'issues-reason', (Line: 24, Col: 7): Unexpected value 'checks-reason'
on:
push:
branches: [main]
paths:
- '**/pyproject.toml'
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
# Run weekly security scans
- cron: '0 2 * * 1'
workflow_dispatch:
jobs:
security:
name: Security Scan
runs-on: ubuntu-latest
permissions:
issues: write
issues-reason: to create issues
checks: write
checks-reason: to create check
steps:
- uses: actions/checkout@v4
- name: Run Rust security audit
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --dev
- name: Run Python security scan
run: |
uv add --dev safety
uv run safety check --ignore 70612
continue-on-error: true # Don't fail CI on security advisories, just report
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3