Skip to content

fix(security): pin GitHub Actions to SHAs, fix docs-pages permissions, and resolve CodeQL findings - #33

Merged
nertwork merged 1 commit into
mainfrom
fix/codeql-alerts-and-pages
Dec 2, 2026
Merged

nertwork merged 1 commit into
mainfrom
fix/codeql-alerts-and-pages

Conversation

@nertwork

@nertwork nertwork commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix docs-pages.yml artifact access: Added actions: read to build-and-deploy.permissions so actions/deploy-pages can read the github-pages artifact metadata cleanly.
  • Pin all GitHub Actions to 40-char commit SHAs: Pinned all actions across ci.yml, release.yml, docs-pages.yml, and codeql.yml with # vX comments (resolving all 14 actions/unpinned-tag alerts).
  • Resolve Python CodeQL quality & warning alerts:
    • Extracted src/nxtflow/_backend_base.py to eliminate all 6 py/cyclic-import edges and replaced ... Protocol stubs with pass (py/ineffectual-statement), keeping nxtflow.backends exports 100% intact.
    • Removed unused LokiError import (mcp_server.py), unused _safe_int (loki.py), unused parsed = None and empty except (enricher/app.py).
    • Updated tests/test_enricher.py to fix py/incomplete-url-substring-sanitization and py/import-and-import-from.

Testing

  • pytest -v (104 passed, 1 skipped)
  • ruff check src tests scripts .github/scripts
  • python3 scripts/security_audit.py

@nertwork
nertwork merged commit 412d9e8 into main Dec 2, 2026
7 checks passed
@nertwork
nertwork deleted the fix/codeql-alerts-and-pages branch December 2, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant