Skip to content

Add ruff check --select S (security rules) to lint CI job #388

@aallan

Description

@aallan

Ruff's S rule set is equivalent to Bandit security checks. CodeRabbit already runs ruff, but CI proper doesn't include the security rules.

Add to the lint job:

- name: Security lint
  run: ruff check --select S vera/

Review findings and add # noqa: S... for legitimate exceptions (e.g., subprocess usage in tests). This catches common Python security anti-patterns like hardcoded credentials, use of eval, and insecure temp file creation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD and GitHub Actions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions