Skip to content

Fix CodeQL workflow by removing non-existent Actions language analysis#6

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/fix-codeql-analysis-languages
Draft

Fix CodeQL workflow by removing non-existent Actions language analysis#6
Copilot wants to merge 4 commits intomainfrom
copilot/fix-codeql-analysis-languages

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

The dynamic CodeQL workflow failed attempting to analyze GitHub Actions code that doesn't exist in this repository, which only contains JavaScript/TypeScript.

Changes

  • Added explicit CodeQL workflow (.github/workflows/codeql.yml)
    • Language matrix: javascript-typescript only
    • Standard triggers: push/PR to main/develop, weekly schedule
    • Removes default setup's erroneous actions language configuration
strategy:
  fail-fast: false
  matrix:
    language: [ 'javascript-typescript' ]

This overrides the GitHub-managed dynamic workflow that was misconfigured with Actions language analysis.

Original prompt

The CodeQL workflow failed because it tried to analyze GitHub Actions code, but no such code exists in the repository. To fix this, update the CodeQL workflow file ('dynamic/github-code-scanning/codeql') so that only JavaScript and TypeScript are set as languages to analyze. Specifically, remove 'actions' from any language lists or matrix definitions. Example fix:

matrix:
language: [javascript, typescript]

If the configuration specifies languages directly, ensure only present languages are listed. Remove steps or config for analyzing GitHub Actions if no custom Actions exist. After updating, CodeQL should successfully scan the repo for JavaScript/TypeScript but not Actions.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 8, 2026 18:25
… only

Co-authored-by: KHAWRIZM <234723867+KHAWRIZM@users.noreply.github.com>
Co-authored-by: KHAWRIZM <234723867+KHAWRIZM@users.noreply.github.com>
Co-authored-by: KHAWRIZM <234723867+KHAWRIZM@users.noreply.github.com>
Copilot AI changed the title [WIP] Update CodeQL workflow to analyze only JavaScript and TypeScript Fix CodeQL workflow by removing non-existent Actions language analysis Jan 8, 2026
Copilot AI requested a review from KHAWRIZM January 8, 2026 18:35
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

Comments