Skip to content

Conversation

@mcovarr
Copy link
Collaborator

@mcovarr mcovarr commented Dec 8, 2025

As currently configured in the GATK repo, CodeQL runs a JavaScript / TypeScript checker action on all PRs. This checker seems to assume that there should always be some JavaScript / TypeScript code to check, and that the absence of any code to check is an error. As of now there is currently no "real" JavaScript or TypeScript code to check, so this checker action always fails (example PR with the same content as current master).

This PR adds a dummy JavaScript file to placate the CodeQL checker.

@mcovarr mcovarr requested a review from Copilot December 8, 2025 18:00
@mcovarr mcovarr marked this pull request as ready for review December 8, 2025 18:00
Copy link

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 a placeholder JavaScript file to satisfy CodeQL's JavaScript/TypeScript analyzer, which currently fails when no JavaScript/TypeScript code is present in the repository.

  • Adds a single JavaScript file containing an explanatory comment as a string literal

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

Comment on lines 1 to 9
const hush = `

This file exists solely to prevent CodeQL from failing its "Analyze (javascript-typescript)" action with:

CodeQL detected code written in Java/Kotlin, Python and GitHub Actions, but not any written in JavaScript/TypeScript. Confirm that there is some source code for JavaScript/TypeScript in the project.

Because apart from the contents of this file, there is currently no JavaScript or TypeScript in the GATK repo.

`;
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The variable 'hush' is declared but never used. Consider either using this variable or removing the const declaration and leaving just a comment block, which would better communicate that this file exists only for CodeQL detection purposes.

Copilot uses AI. Check for mistakes.
@mcovarr mcovarr requested a review from Copilot December 8, 2025 18:04
Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


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

Copy link
Collaborator

@jonn-smith jonn-smith left a comment

Choose a reason for hiding this comment

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

👍

@jonn-smith jonn-smith merged commit 98c94da into master Dec 8, 2025
21 checks passed
@jonn-smith jonn-smith deleted the vs_1777_placate_codeql branch December 8, 2025 18:53
mcovarr added a commit that referenced this pull request Dec 9, 2025
* CodeQL was enabled on all public Broad repositories.  Since this repository contains no JavaScript / TypeScript, CodeQL always fails.  Because of this we have to add a workaround here so it does not fail and our checks all come up nice and green.
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.

3 participants