Repository navigation
Fix CodeQL init/analyze version mismatch (supersedes #355, #358) - #427
Merged
Merged
Conversation
PR #358 (bump analyze to 4.37.1 alone) failed with: Loaded a configuration file for version '4.36.2', but running version '4.37.1' github/codeql-action's init and analyze steps must be pinned to the same version -- the analyze step refuses to run against a config written by a different version's init step. Dependabot tracks init and analyze as separate dependencies (two different `uses:` lines pointing at the same monorepo) and had opened two independent PRs (#355 for init, #358 for analyze) that are only valid merged together, never individually. This exact thing happened before at 4.37.0 too (#236/#237, both closed unmerged) -- bumping just one side alone isn't a safe merge. Bumped both init and analyze to 4.37.1 (7188fc3) together in one atomic change instead. Closing #355 and #358 as superseded by this.
This was referenced Jul 25, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#358 (bump `codeql-action/analyze` to 4.37.1 alone) was failing:
```
##[error]Loaded a configuration file for version '4.36.2', but running version '4.37.1'
```
`github/codeql-action`'s `init` and `analyze` steps must be pinned to the same version -- `analyze` refuses to run against a config written by a different version's `init`. Dependabot tracks `init` and `analyze` as separate dependencies (two `uses:` lines pointing at the same monorepo) and opened two independent PRs (#355 for `init`, #358 for `analyze`) that are individually broken and only valid merged together. Confirmed this happened identically at the 4.37.0 bump too (#236/#237, both closed unmerged for the same reason).
Bumped both to 4.37.1 (`7188fc3`) together in one atomic change.
Also created the missing `security` label -- `dependabot.yml` references it but it didn't exist, so every dependency PR (including #358) got a "labels could not be found" warning and silently skipped applying it.
Closing #355 and #358 as superseded by this.
Test plan