Skip to content

ci: activate L9 governed python pipeline#143

Open
cryptoxdog wants to merge 5 commits into
mainfrom
ci/activate-l9-governed-pipeline
Open

ci: activate L9 governed python pipeline#143
cryptoxdog wants to merge 5 commits into
mainfrom
ci/activate-l9-governed-pipeline

Conversation

@cryptoxdog

Copy link
Copy Markdown
Collaborator

Activates the locked l9-ci-core python preset (semgrep governed analysis + lint/test hygiene).

Discovered config:

{
  "SOURCE_DIR": ".",
  "TEST_DIR": "tests/"
}

Source: Quantum-L9/l9-ci-core/presets/python.

Preset: python. Discovered config: {"SOURCE_DIR": ".", "TEST_DIR": "tests/"}
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ Large PR Warning
Reviewable lines changed: 924
Warning threshold: 300 lines
Consider splitting for easier review

📋 Best Practices for Large Changes

  1. Refactoring + Features: Separate into 2 PRs
  2. Multiple Features: One PR per feature
  3. Database + Code: Separate migration from logic
  4. Generated Code: Exclude it from reviewable-size accounting

This PR passes the blocking limit but is larger than recommended.


permissions:
contents: read
checks: write
artifact-name: ${{ steps.names.outputs.artifact-name }}
permissions:
contents: read
checks: write
uses: Quantum-L9/l9-ci-core/.github/workflows/publish-analysis.yml@f88116503430aa18992b70d8d31063e34ff97ef1
permissions:
actions: read
checks: write
if: steps.gov.outputs.enabled == 'true'
run: |
set -euo pipefail
pip install --upgrade pip semgrep
- name: Install lint tools
run: |
set -euo pipefail
python -m pip install --upgrade pip
set -euo pipefail
python -m pip install --upgrade pip
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
pip install -e ".[dev]" || pip install -e . || \
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
pip install -e ".[dev]" || pip install -e . || \
echo "::notice::no local editable package to install"
command -v pytest >/dev/null 2>&1 || pip install pytest
pip install -e ".[dev]" || pip install -e . || \
echo "::notice::no local editable package to install"
command -v pytest >/dev/null 2>&1 || pip install pytest
python -c "import pytest_cov" 2>/dev/null || pip install pytest-cov
echo "::notice::no local editable package to install"
command -v pytest >/dev/null 2>&1 || pip install pytest
python -c "import pytest_cov" 2>/dev/null || pip install pytest-cov
python -c "import xdist" 2>/dev/null || pip install pytest-xdist
command -v pytest >/dev/null 2>&1 || pip install pytest
python -c "import pytest_cov" 2>/dev/null || pip install pytest-cov
python -c "import xdist" 2>/dev/null || pip install pytest-xdist
python -c "import pytest_timeout" 2>/dev/null || pip install pytest-timeout
…-in, semgrep strict-mode)

Ports Quantum-L9/l9-ci-core@d5e0f31 into this branch's copied preset files.
python -m pip install --upgrade pip
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
command -v ruff >/dev/null 2>&1 || pip install ruff
command -v mypy >/dev/null 2>&1 || pip install mypy
…-in, semgrep strict-mode)

Ports Quantum-L9/l9-ci-core@d5e0f31 into this branch's copied preset files.
…-in, semgrep strict-mode)

Ports Quantum-L9/l9-ci-core@d5e0f31 into this branch's copied preset files.
Ports Quantum-L9/l9-ci-core@1b026c1 into this branch's copied preset files. Adds semgrep-identity-map.yaml + semgrep-policy.yaml, points quality-thresholds.yaml at the policy file, restores strict: true now that identity resolution is satisfiable, and passes identity-map to the normalize step.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants