Skip to content

Commit 5a5b84c

Browse files
fix(codeql): analyse the languages this repository actually has (#60)
`codeql database finalize` was exiting **32** on every run: > CodeQL could not process any code written in JavaScript/TypeScript. The matrix asserted `javascript-typescript`; this repository's languages are `none`. One `codeql.yml` was copied estate-wide with a hard-coded JS matrix — **82 repositories** carry it, and 17 of the 18 sampled have no JavaScript at all (Julia, Rust, Zig, Agda, Ada, Haskell, Elixir). **This is not only a failing check.** The crash uploads no SARIF, so a `code_scanning` ruleset rule requiring CodeQL waits forever on *"Code scanning is waiting for results from CodeQL"*. One fault, two symptoms — and relaxing the rule's thresholds could not have helped, because no results arrive at all. `actions` is kept (or added): it is valid in every repository, since every repository has workflow files, and it keeps this workflow producing a check and a SARIF upload even where CodeQL can analyse nothing else. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 9fe6e35 commit 5a5b84c

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,8 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
# Uncomment languages used in your project
39-
# - language: rust
40-
# build-mode: manual
41-
# - language: go
42-
# build-mode: autobuild
43-
# - language: java-kotlin
44-
# build-mode: autobuild
45-
- language: javascript-typescript
38+
- language: actions
4639
build-mode: none
47-
# - language: python
48-
# build-mode: none
49-
5040
steps:
5141
- name: Checkout repository
5242
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

0 commit comments

Comments
 (0)