fix(ansible): auto-detect WSL2 and set correct ai_stack_host per depl… #1244
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CodeQL Analysis workflow | |
| # Runs CodeQL security analysis on Python code with custom scan paths. | |
| # | |
| # Related issue: #1826 | |
| name: CodeQL Analysis | |
| on: | |
| push: | |
| branches: [main, Dev_new_gui] | |
| paths: ["autobot-backend/**", "autobot_shared/**", "autobot-slm-backend/**", "*.py"] | |
| pull_request: | |
| branches: [main, Dev_new_gui] | |
| paths: ["autobot-backend/**", "autobot_shared/**", "autobot-slm-backend/**", "*.py"] | |
| schedule: | |
| # Run CodeQL analysis weekly on Sundays at 3 AM UTC | |
| - cron: "0 3 * * 0" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| # Let CodeQL runs complete — cancelling produces stale 3s failures (#2699) | |
| cancel-in-progress: false | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze Python | |
| runs-on: self-hosted | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [python] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| config-file: .github/codeql/codeql-config.yml | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:${{ matrix.language }}" |