Skip to content

Conversation

@asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 4, 2025

No description provided.

@asgerf asgerf requested a review from a team as a code owner November 4, 2025 08:38
Copilot AI review requested due to automatic review settings November 4, 2025 08:38
@github-actions github-actions bot added the JS label Nov 4, 2025
@asgerf asgerf added the Actions Analysis of GitHub Actions 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 detecting when the Actions extractor is being used and adjusts the extraction failure logic accordingly. The key change allows the extractor to succeed even when no JavaScript/TypeScript code is found if running in Actions extractor mode.

  • Added a new environment variable CODEQL_EXTRACTOR_ACTIONS_WIP_DATABASE and helper method to detect Actions extractor mode
  • Modified the extraction failure condition to allow success without code when using the Actions extractor
  • Fixed comment typos in the extraction logic

Reviewed Changes

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

File Description
EnvironmentVariables.java Added constant for Actions extractor environment variable and isActionsExtractor() helper method
AutoBuild.java Updated extraction failure condition to allow Actions extractor to succeed without code, and fixed comment typos

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions bot removed the Actions Analysis of GitHub Actions label Nov 4, 2025
The code was written on the assumption that 'seenCode' implies 'seenFiles' but the unit test override 'hasSeenCode()' to always return true. Which meant we would start taking this branch in the unit tests.
Copy link
Member

@mbg mbg left a comment

Choose a reason for hiding this comment

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

CI looks good for both JS and Actions (manually dispatched).

@asgerf asgerf merged commit d297dcd into github:main Nov 4, 2025
8 checks passed
mbg pushed a commit that referenced this pull request Nov 4, 2025
Actions: don't fail if no JS/TS code was found
mbg added a commit that referenced this pull request Nov 4, 2025
…f-no-js

Backport: Merge pull request #20752 from asgerf/actions/dont-fail-if-no-js
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.

2 participants