Skip to content

Make CI lint and security scans fail the build #18

Open

Description

@OkiriGabriel

Problem

CI quality gates are effectively optional, allowing lint and security regressions to merge.

Current state

  • black --check and flake8 use continue-on-error: true
  • safety check || true never fails the job
  • codecov uses fail_ci_if_error: false
  • Integration webhook tests use || echo "Expected to fail gracefully" instead of asserting behavior

Acceptance criteria

  • Remove continue-on-error from lint steps (or gate on main only)
  • Fail on safety high/critical findings; upload Bandit report and fail on high severity
  • Integration tests assert HTTP status codes and response shape for /webhook/*
  • Optionally enforce minimum coverage threshold

Files

  • .github/workflows/ci.yml

Activity

  1. added
    enhancement
    security
    ci
    on Jul 16, 2026
  2. OpeyemiAdeniji commented on Oct 16, 2026

    @OpeyemiAdeniji
    Contributor

    Hi @OkiriGabriel, I'd like to work on this in small PRs so each is easy to review, starting with the lowest-risk items:

    1. Remove continue-on-error from the Flake8 step (it only selects E9,F63,F7,F82; I'll confirm it's clean on main first).
    2. Replace the || echo "Expected to fail gracefully" webhook steps with assertions on HTTP status codes and response shape.

    Two questions before I touch the rest:

    • Black: in the latest CI run, black --check . reports 81 files that would be reformatted (18 unchanged), so gating it as-is would fail every PR. Would you prefer a one-time reformat commit, gating only the files a PR changes, or leaving Black non-blocking for now?
    • Safety: would you rather keep Safety (I'd need to check how its CLI currently handles severity) or would you accept pip-audit for the dependency check?
  3. OkiriGabriel commented on Oct 19, 2026

    @OkiriGabriel
    CollaboratorAuthor

    Thanks @OpeyemiAdeniji, the plan of small PRs sounds good. #86 (blocking Flake8) is approved. Go ahead with the webhook-assertion PR next. I'll follow up here on Black and Safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

cienhancementsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions