Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix(codeql): split disable-default-setup into separate job with confirmation
KaifAhmad18b47c148c516
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex 58972bab..89ffa14c 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -14,23 +14,43 @@ permissions:actions: readjobs:- analyze:- name: Analyze Python+ disable-default-setup:+ name: Disable CodeQL Default Setupruns-on: ubuntu-latest-steps:- - name: Checkout repository- uses: actions/checkout@v4-- - name: Disable CodeQL Default Setup- # Advanced Setup (this workflow) and Default Setup cannot run simultaneously.- # This step switches Default Setup to not-configured so SARIF upload succeeds.+ - name: Switch Default Setup to not-configuredenv:GH_TOKEN: ${{ github.token }}run: |+ echo "Disabling CodeQL Default Setup..."gh api repos/${{ github.repository }}/code-scanning/default-setup \-X PATCH \- -f state=not-configured || true+ -f state=not-configured++ - name: Wait for Default Setup state to propagate+ run: sleep 30++ - name: Confirm Default Setup is disabled+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ STATE=$(gh api repos/${{ github.repository }}/code-scanning/default-setup \+ --jq '.state')+ echo "Default Setup state: $STATE"+ if [ "$STATE" != "not-configured" ]; then+ echo "Default Setup is still enabled — cannot proceed with Advanced Setup."+ exit 1+ fi+ echo "Default Setup confirmed disabled. Proceeding with Advanced Setup."++ analyze:+ name: Analyze Python+ runs-on: ubuntu-latest+ needs: disable-default-setup++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4- name: Initialize CodeQLuses: github/codeql-action/init@v3