Skip to content

Conversation

@mbg
Copy link
Member

@mbg mbg commented Nov 4, 2025

Backport #20752 to the release branch.

Actions: don't fail if no JS/TS code was found
@mbg mbg requested a review from a team as a code owner November 4, 2025 12:21
Copilot AI review requested due to automatic review settings November 4, 2025 12:21
@github-actions github-actions bot added the JS label Nov 4, 2025
Copy link
Contributor

Copilot AI left a 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 adds support for the Actions extractor by introducing a new environment variable check and modifying the extraction failure logic to treat all files as relevant when using the Actions extractor.

  • Added CODEQL_EXTRACTOR_ACTIONS_WIP_DATABASE_ENV_VAR constant and isActionsExtractor() method to detect Actions extractor mode
  • Modified extraction failure logic to consider seenFiles as sufficient for Actions extractor instead of requiring hasSeenCode()
  • Fixed a capitalization inconsistency in a comment

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
EnvironmentVariables.java Added new environment variable constant for Actions extractor and helper method to detect Actions extractor mode
AutoBuild.java Modified extraction failure logic to treat all files as relevant for Actions extractor and corrected comment capitalization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mbg mbg merged commit da1e93e into codeql-cli-2.23.4 Nov 4, 2025
10 of 11 checks passed
@mbg mbg deleted the mbg/2.23.4/backport-dont-fail-if-no-js branch November 4, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants