Skip to content

fix: resolve CI lint failures and clean up codebase - #144

Merged
usmanimamu17-create merged 3 commits into
ApexChainx:mainfrom
Husten150:fix/issues-43-46-47-51-tenny150-ci-fix
Jul 31, 2026
Merged

fix: resolve CI lint failures and clean up codebase#144
usmanimamu17-create merged 3 commits into
ApexChainx:mainfrom
Husten150:fix/issues-43-46-47-51-tenny150-ci-fix

Conversation

@Husten150

Copy link
Copy Markdown
Contributor

Fixes the CI failures from PR #140 by:

Root Causes Fixed

  • Fix invalid build-backend in pyproject.toml (caused pip install to fail with exit code 2)
  • Add missing dispatch_webhook_event Celery task (previously undefined reference)

Lint & Type Fixes

  • Fix all 779 ruff lint errors and format issues
  • Configure mypy to pass

Closes #43
Closes #46
Closes #47
Closes #51

- Fix invalid setuptools build-backend in pyproject.toml
- Add missing dispatch_webhook_event Celery task
- Fix all ruff lint and format issues
@Tenny150

Copy link
Copy Markdown
Contributor

Superseded by PR #145 from Tenny150

@usmanimamu17-create usmanimamu17-create left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Husten150 resolve conflicts

Resolve merge conflicts with upstream main (103 commits ahead) by keeping
main's implementation, then apply ruff lint/format fixes and repair broken
imports and type errors so the CI lint, format, and mypy gates pass.

Notable fixes:
- Restore corrupted app/main.py, app/core/exceptions.py, webhook endpoints,
  audit_log and webhook_service imports (stray 'main'/'issue/...' merge debris)
- Add missing imports (Generator, re, UTC, celery_app, get_or_generate_correlation_id)
- Fix OpenTelemetry ASGI response hook (dict response message has no status_code attr)
- Add missing foreign_keys to SLAResultORM.disputes relationship
- Add # nosec annotations for legitimate non-crypto random usage and
  credential-erasure to satisfy bandit (B311, B105)
- Pin aquasecurity/trivy-action to v0.28.0 (0.28.0 tag does not exist)
- Use 'semgrep scan' instead of 'semgrep ci' (ci lacks --error/--config)
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

# ── Trivy scan → SARIF ───────────────────────────────────────────────────
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@v0.28.0
@usmanimamu17-create
usmanimamu17-create merged commit 09fc4bb into ApexChainx:main Jul 31, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants