Skip to content

ci: replace CodeQL Default Setup with custom Advanced Setup workflow#49533

Draft
Copilot wants to merge 2 commits into
trunkfrom
copilot/fix-analyze-javascript-typescript-job
Draft

ci: replace CodeQL Default Setup with custom Advanced Setup workflow#49533
Copilot wants to merge 2 commits into
trunkfrom
copilot/fix-analyze-javascript-typescript-job

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

GitHub's CodeQL Default Setup (dynamic/github-code-scanning/codeql) was intermittently failing during init with HttpError: Requires authentication when it calls the GitHub REST API to check "feature enablement" (ML-enhanced query availability). This aborts the job before any analysis runs.

Changes

  • .github/workflows/codeql.yml — new custom CodeQL workflow (Advanced Setup) for javascript-typescript:
    • Runs on push/PR to trunk and weekly schedule
    • Explicit security-events: write permission
    • build-mode: none (correct for JS/TS)
    • Job name Analyze (${{ matrix.language }}) preserves the check run name that branch protection rules reference
    • No feature-enablement API call — Advanced Setup skips that Default Setup-specific check entirely
    • GitHub automatically disables Default Setup for covered languages when a custom workflow is present, so there's no duplication

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Analyze (javascript-typescript) ci: replace CodeQL Default Setup with custom Advanced Setup workflow Jun 10, 2026
Copilot AI requested a review from iamchughmayank June 10, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants