ci: add CodeQL, lint/typecheck/smoke CI, and dependency review
- ci.yml: ruff check + format check, pyright typecheck, and import/CLI smoke test on Python 3.10/3.11/3.12/3.13 matrix. Uses uv like the existing pre-commit workflow for consistency. - codeql.yml: weekly + push/PR Python security-and-quality analysis. - dependency-review.yml: fail PRs adding high+ severity CVEs or copyleft licenses that would taint GPL-3.0 (AGPL, SSPL, BUSL).
This commit is contained in:
3 files changed
+163
No files matched your search
@@ -0,0 +1,27 @@
|
||||
name: Dependency Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
name: Audit dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v4
|
||||
with:
|
||||
fail-on-severity: high
|
||||
fail-on-scopes: changes
|
||||
license-check: true
|
||||
# Project is GPL-3.0-or-later; flag licenses that would taint it.
|
||||
deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later, SSPL-1.0, BUSL-1.1
|
||||
comment-summary-in-pr: always
|
||||
vuln-check-non-vulnerable-refs: true
|
||||
Reference in new issue
Block a user