From c2032a242b85bd86a6ce2e4e3f778f2da1173be4 Mon Sep 17 00:00:00 2001 From: KaifAhmad1 Date: Mon, 24 Nov 2025 17:33:29 +0530 Subject: [PATCH] fix: Make format and dependency scans non-blocking --- .github/workflows/format.yml | 5 +++-- .github/workflows/security.yml | 12 ++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index f4936e42..6d8a03f5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -35,8 +35,9 @@ jobs: - name: Check formatting if: github.event_name == 'pull_request' run: | - black --check semantica/ || exit 1 - isort --check-only semantica/ || exit 1 + black --check semantica/ || echo "⚠️ Code formatting issues found. Run: black semantica/" + isort --check-only semantica/ || echo "⚠️ Import sorting issues found. Run: isort semantica/" + continue-on-error: true - name: Format with black if: github.event_name != 'pull_request' diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index f212bc39..66c65c3f 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -40,14 +40,18 @@ jobs: - name: Run pip-audit run: | - pip-audit --format json --output pip-audit-report.json || echo "pip-audit found issues" - pip-audit || echo "pip-audit completed" + set +e + pip-audit --format json --output pip-audit-report.json 2>&1 || echo "pip-audit scan completed" + pip-audit 2>&1 || echo "pip-audit completed with findings" + exit 0 continue-on-error: true - name: Run safety check run: | - safety check --json --output safety-report.json 2>/dev/null || echo "Safety check found issues" - safety check || echo "Safety check completed" + set +e + safety check --json --output safety-report.json 2>&1 || echo "Safety check completed" + safety check 2>&1 || echo "Safety check completed with findings" + exit 0 continue-on-error: true - name: Upload security reports