Skip to content

Fix CodeQL init/analyze version mismatch (supersedes #355, #358) - #427

Merged
squid-protocol merged 1 commit into
mainfrom
fix/codeql-action-version-mismatch
Jul 25, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/codeql-action-version-mismatch

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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

  • Workflow YAML parses cleanly
  • CodeQL `Analyze (python)` check passes on this PR -- direct live verification of the fix

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.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 82b8ed6 into main Jul 25, 2026
25 checks passed
@squid-protocol
squid-protocol deleted the fix/codeql-action-version-mismatch branch July 25, 2026 14:47
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