GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix auto-detection of extractors that aren't languages by henrymercer · Pull Request #3015 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

We tried to determine languages using codeql resolve languages, but that actually gives us extractors, and not all extractors are supported languages. We probably want to change our definition to something like "a -queries pack exists" when doing autodetection, but to get this fixed quickly, this PR reverts back to a hardcoded set.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer added 3 commits August 7, 2025 21:09
@henrymercer
Fix auto-detection of extractors that aren't languages
5794ffc
@henrymercer
Bump Action patch version
6b4fedc
@henrymercer
Add changelog note
6bc91d6
@henrymercer
henrymercer requested a review from a team as a code owner August 7, 2025 20:15
Copilot AI review requested due to automatic review settings August 7, 2025 20:15
Copilot AI reviewed Aug 7, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the CodeQL Action was incorrectly auto-detecting extractors that aren't supported languages (like HTML, CSV, XML, etc.) when using codeql resolve languages. The fix reverts to using a hardcoded set of known languages as a temporary workaround.

  • Adds a filter to only include extractors that are defined in the KnownLanguage enum
  • Adds "actions" as a new known language and reorders the enum alphabetically
  • Includes comprehensive test coverage for both specified and auto-detected unsupported extractors

Reviewed Changes

Copilot reviewed 8 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/languages.ts Adds "actions" language and reorders KnownLanguage enum alphabetically
src/config-utils.ts Adds filtering logic to exclude extractors that aren't in KnownLanguage enum
src/config-utils.test.ts Adds test cases for HTML extractor filtering in both specified and auto-detected scenarios
package.json Version bump to 3.29.8
lib/ files Compiled JavaScript output corresponding to TypeScript changes
CHANGELOG.md Documents the bug fix for autodetection of unsupported languages

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mbg
mbg approved these changes Aug 7, 2025
View reviewed changes
cklin
cklin approved these changes Aug 7, 2025
View reviewed changes
@henrymercer
henrymercer enabled auto-merge August 7, 2025 20:25
@henrymercer
henrymercer merged commit 6fe50b2 into main Aug 7, 2025
@henrymercer
henrymercer deleted the henrymercer/language-autodetection-workaround branch August 7, 2025 20:28
@github-actions github-actions Bot mentioned this pull request Aug 8, 2025
Merge main into releases/v3 #3019
Merged
8 tasks
@schivei schivei mentioned this pull request Oct 7, 2026
ci: scan src/*.mc with CodeQL via minicompiler/codeql-mc minicompiler/mc-php#56
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@mbg mbg mbg approved these changes
@cklin cklin cklin approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@henrymercer @mbg @cklin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.