Skip to content

Pass the matrix language to CodeQL under the name it reads - #76

Merged
ivanvyd merged 1 commit into
mainfrom
fix/codeql-languages-input
Aug 14, 2026
Merged

Pass the matrix language to CodeQL under the name it reads#76
ivanvyd merged 1 commit into
mainfrom
fix/codeql-languages-input

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Aug 14, 2026

Copy link
Copy Markdown
Owner

codeql-action/init takes languages, not language. Every run has been saying so in an annotation nobody was reading:

Unexpected input(s) 'language', valid inputs are ['tools', 'languages', 'build-mode', ...]

Because the input was ignored, the [csharp, actions] matrix was not selecting anything — both legs fell back to autodetection and analysed whatever CodeQL inferred, twice over. The matrix has been decorative since it was written, which is a quiet way for a security workflow to do less than it appears to.

One word. The two legs now analyse csharp and actions as the file already claims, and the warning goes away.

Expect this to surface findings, particularly on the Actions leg, which has never actually been asked about Actions before. That is the point of the fix rather than a side effect of it.

Found while clearing the Dependabot backlog: the annotation was sitting next to the codeql-action version-mismatch failures.

`codeql-action/init` takes `languages`, not `language`. Every run has been saying
so and nobody was reading it:

    Unexpected input(s) 'language', valid inputs are ['tools', 'languages', ...]

Because the input was ignored, the `[csharp, actions]` matrix was not selecting
anything: both legs fell back to autodetection and analysed whatever CodeQL
inferred, twice. The matrix has been decorative since it was written.

One word. It makes the two legs analyse csharp and actions as the file already
claims they do, and it removes a warning from every security run. Expect the
Actions leg in particular to have more to say now that it is actually being
asked about Actions.
@ivanvyd
ivanvyd merged commit 2cb58ae into main Aug 14, 2026
10 checks passed
@ivanvyd
ivanvyd deleted the fix/codeql-languages-input branch August 14, 2026 04:40
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.

1 participant