# Caller into the ops repo's CodeQL reusable. # # Three languages. **Rust** — CodeQL analyses it without a build (`build-mode: none`, which the # reusable passes for every language outside its autobuild list); this file said for six releases # that CodeQL had no Rust support, which stopped being true in 2025. **Actions** — the workflows # themselves: the class of mistake SonarCloud kept finding by hand (write permissions at workflow # level, unpinned third-party actions). **JavaScript/TypeScript** — the frontend, and the one # whose check name `main`'s protection requires, so it keeps its exact name. # # The reusable notes that repo Settings → Advanced Security → CodeQL "Default setup" must be # DISABLED, or this advanced-setup workflow is rejected at upload time. name: CodeQL on: pull_request: push: branches: [main] schedule: # Weekly, offset off the hour to avoid the top-of-hour scheduling pileup. - cron: '37 4 * * 1' # A caller cannot grant a called workflow less than its jobs declare, or the run is rejected before # it starts. reusable-codeql.yml's analyze job asks for `packages: read` to fetch internal CodeQL # packs, so omitting it here produced a startup_failure with no logs to explain it — the same # permissions trap RELEASE-CI.md §1 records, from the other direction. permissions: actions: read contents: read packages: read security-events: write jobs: analyze: uses: poli0981/.github/.github/workflows/reusable-codeql.yml@main with: languages: '["javascript-typescript", "rust", "actions"]'