Skip to content

fix(ci): use the languages input for CodeQL init#315

Merged
ion-alpha-dev merged 1 commit into
mainfrom
fix/codeql-languages-input
Jul 8, 2026
Merged

fix(ci): use the languages input for CodeQL init#315
ion-alpha-dev merged 1 commit into
mainfrom
fix/codeql-languages-input

Conversation

@ion-alpha-dev

Copy link
Copy Markdown
Collaborator

What

Rename the CodeQL init input from language to languages, the name the action actually accepts.

Why

With the singular language key the action logs "Unexpected input(s) 'language'" and ignores it, then autodetects languages. Both matrix legs (go, actions) end up analyzing the same autodetected set instead of the language the matrix selected, so the intended per-language split is not honored.

How to verify

The CodeQL run on this PR completes without the "Unexpected input(s) 'language'" annotation, and the Analyze (go) and Analyze (actions) jobs each initialize their own language.

Notes for reviewers

The matrix dimension is still named language; only the action input key changed.

The `github/codeql-action/init` input is `languages`, not `language`. With the
singular key the action warned "Unexpected input(s) 'language'" and ignored it,
falling back to language autodetection so both matrix legs analyzed the same
detected set instead of the intended `go` and `actions`. Use `languages` so each
leg initializes the language the matrix selects.
@ion-alpha-dev ion-alpha-dev force-pushed the fix/codeql-languages-input branch from b751bce to 6fdf988 Compare July 8, 2026 06:57
@ion-alpha-dev ion-alpha-dev merged commit 6fdf988 into main Jul 8, 2026
1 check passed
@ion-alpha-dev ion-alpha-dev deleted the fix/codeql-languages-input branch July 8, 2026 06:57
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant