Skip to content

Add JavaScript support to code scanning workflow#2157

Merged
mattdholloway merged 1 commit intomainfrom
SamMorrowDrums-patch-3
Mar 6, 2026
Merged

Add JavaScript support to code scanning workflow#2157
mattdholloway merged 1 commit intomainfrom
SamMorrowDrums-patch-3

Conversation

@SamMorrowDrums
Copy link
Collaborator

All supported langauges should be scanned with code scanning.

@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner March 6, 2026 08:32
Copilot AI review requested due to automatic review settings March 6, 2026 08:33
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

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

Adds JavaScript to the existing CodeQL code-scanning workflow so the repository’s UI/TypeScript code is included in code scanning alongside the current Go/Actions scans.

Changes:

  • Extend the CodeQL job matrix to include javascript.
  • Update the Node.js setup step condition to run for both Go and JavaScript scans.

Comment on lines +38 to +41
- language: javascript
category: /language:javascript
build-mode: none
runner: '["ubuntu-22.04"]'
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

The matrix adds javascript with build-mode: none, but the workflow still runs the github/codeql-action/autobuild@v4 step unconditionally. This means the new JavaScript job will execute an unnecessary (and potentially flaky) autobuild phase even though the job declares no build. Consider either (a) gating the Autobuild step on matrix.build-mode == 'autobuild', or (b) switching the JavaScript entry to build-mode: autobuild and adding explicit npm install/build steps so the build behavior is intentional and consistent.

Copilot uses AI. Check for mistakes.
@mattdholloway mattdholloway merged commit 7848af8 into main Mar 6, 2026
21 checks passed
@mattdholloway mattdholloway deleted the SamMorrowDrums-patch-3 branch March 6, 2026 11:57
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.

4 participants