Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Limit PR validation to the security gates
Martin Vogeleb2e8d596378
diff --git a/.github/workflows/_security.yml b/.github/workflows/_security.ymlindex ce32a6114..b7ce3bb37 100644--- a/.github/workflows/_security.yml+++ b/.github/workflows/_security.yml@@ -46,7 +46,9 @@ jobs:env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |- CURRENT_SHA="${{ github.sha }}"+ # On pull_request events github.sha is the synthetic merge commit;+ # CodeQL runs are recorded against the PR head SHA.+ CURRENT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"echo "Waiting for CodeQL to complete on $CURRENT_SHA..."for attempt in $(seq 1 90); doLATEST=$(gh api repos/${{ github.repository }}/actions/workflows/codeql.yml/runs?per_page=5 \diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex c00c41ec0..8566e1ffd 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -1,7 +1,7 @@-# PR validation: the full dry-run pipeline (minus soak) on every pull-# request. Branch protection requires the final `ci-ok` summary job — a-# single stable context that fails unless every stage succeeded, so matrix-# renames can never silently deadlock merges.+# PR validation: the security gates only — static audit, the license gates+# (structural + ScanCode + npm tree + provenance), and the CodeQL gate.+# The full dry-run chain (lint/test/build/smoke/soak) stays maintainer-driven+# via workflow_dispatch. Branch protection requires `dco` + `ci-ok`.name: PRon:@@ -16,46 +16,20 @@ jobs:uses: ./.github/workflows/_security.ymlsecrets: inherit- lint:- uses: ./.github/workflows/_lint.yml-- test:- needs: [lint]- if: ${{ !cancelled() && needs.lint.result == 'success' }}- uses: ./.github/workflows/_test.yml- with:- # Perf assertions are timing-sensitive on shared runners; they stay in- # dry runs and releases where a flaky red does not block a merge.- skip_perf: true-- build:- needs: [test]- if: ${{ !cancelled() && needs.test.result == 'success' }}- uses: ./.github/workflows/_build.yml-- smoke:- needs: [build]- if: ${{ !cancelled() && needs.build.result == 'success' }}- uses: ./.github/workflows/_smoke.yml-ci-ok:- # The one required context (besides dco). Runs even when upstream jobs- # fail, and passes only when every stage succeeded.- needs: [security, lint, test, build, smoke]+ # The one required context (besides dco) — a stable name that fails+ # unless the security gates succeeded.+ needs: [security]if: ${{ always() }}runs-on: ubuntu-latesttimeout-minutes: 5steps:- - name: All stages must have succeeded+ - name: Security gates must have succeededenv:- RESULTS: ${{ toJSON(needs) }}+ RESULT: ${{ needs.security.result }}run: |- echo "$RESULTS" | python3 -c "- import json, sys- needs = json.load(sys.stdin)- bad = {k: v['result'] for k, v in needs.items() if v['result'] != 'success'}- if bad:- print('CI NOT OK:', bad)- sys.exit(1)- print('CI OK:', ', '.join(needs))- "+ if [ "$RESULT" != "success" ]; then+ echo "CI NOT OK: security=$RESULT"+ exit 1+ fi+ echo "CI OK: security gates green"