Add Apache-2.0 license metadata to pyproject.toml (#19) #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Security | ||
| 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 | ||