Move to using providers instead of inline time based schdules, this will solidify the provider contract as a first class API #116
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
| # Copyright (c) 2025 Erick Bourgeois, firestoned | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # CodeQL analysis — explicit language list. | |
| # | |
| # Writing this workflow disables GitHub's "default setup" CodeQL config | |
| # and lets us pin exactly which languages get analyzed. We had to take | |
| # over the default setup because it auto-detected Python from | |
| # docs/pyproject.toml (Poetry manifest for MkDocs tooling) and then | |
| # failed with "CodeQL detected code written in GitHub Actions, Rust | |
| # and JavaScript/TypeScript, but not any written in Python" once the | |
| # 5-Spot VEX Python tooling was removed in the Phase 1 cleanup | |
| # (.claude/CHANGELOG.md 2026-04-22 19:45). | |
| # | |
| # Languages analyzed here are exactly the ones with real source files: | |
| # - `rust` — src/**/*.rs (beta in CodeQL; upstream | |
| # aware, stable enough for static | |
| # vulnerability checks on our surface) | |
| # - `actions` — .github/workflows/**/*.yaml | |
| # - `javascript-typescript` | |
| # — docs/src/javascripts/mermaid-init.js | |
| # (MkDocs Mermaid integration) | |
| # | |
| # We explicitly do NOT list `python`: the pyproject.toml under docs/ | |
| # is a Poetry *manifest* for the MkDocs build, not Python source code, | |
| # and would cause the analyzer to finalize an empty database. | |
| name: CodeQL | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| # Weekly full re-scan on Sundays at 07:17 UTC. Offsets the minute | |
| # so we don't collide with the hourly cron queue. Keeps the Code | |
| # Scanning dashboard fresh when a week passes without code changes. | |
| - cron: '17 7 * * 0' | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: 🔍 CodeQL - ${{ matrix.language }} | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| packages: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: rust | |
| build-mode: none | |
| runner: ubuntu-latest | |
| - language: actions | |
| build-mode: none | |
| runner: ubuntu-latest | |
| - language: javascript-typescript | |
| build-mode: none | |
| runner: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| # Repo-local config file (paths-ignore, query suites). Keeps | |
| # generated / vendored output out of the database. | |
| config-file: ./.github/codeql/codeql-config.yml | |
| - name: Perform CodeQL analysis | |
| uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| category: "/language:${{ matrix.language }}" |