FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Actions: don't fail if no JS/TS code was found by asgerf · Pull Request #20752 · github/codeql · GitHub

/ codeql Public

Actions: don't fail if no JS/TS code was found - #20752

Merged
asgerf merged 3 commits into
github:mainfrom
asgerf:actions/dont-fail-if-no-js
Nov 4, 2025
Merged

Actions: don't fail if no JS/TS code was found#20752
asgerf merged 3 commits into
github:mainfrom
asgerf:actions/dont-fail-if-no-js

Conversation

asgerf commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

No description provided.

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 Bot added the JS label Nov 4, 2025
asgerf added the Actions Analysis of GitHub Actions label Nov 4, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 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.

mbg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL