Repository navigation
fix(ci): align all codeql-action steps to v4.37.9 - #657
Merged
Merged
Conversation
The CodeQL Analyze job failed with: We were unable to automatically build your code. ... Loaded a configuration file for version '4.36.3', but running version '4.37.4' The three github/codeql-action steps were pinned to mismatched versions (init v4.36.3, autobuild v4.37.4, analyze v4.37.9) because Dependabot bumped analyze and autobuild but never init. init writes a config that the later steps must load with the same version. Pin all three to the same commit (v4.37.9, cdf488f) so init/autobuild/analyze agree. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BifaamrWqi1EhVUhTkVBPC
martin-majlis
force-pushed
the
fix/codeql-action-version-mismatch
branch
from
September 3, 2026 20:20
5fad522 to
637b03b
Compare
Dependabot treats each github/codeql-action sub-action (init, autobuild, analyze) as a separate dependency, so it bumped them in independent PRs and they drifted to different versions -- which broke the Analyze job. Add a Dependabot group matching "github/codeql-action*" so all three are bumped together in a single PR and stay on the same version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BifaamrWqi1EhVUhTkVBPC
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.
Problem
The CodeQL Analyze (python) job fails at the Autobuild step:
Cause
Dependabot treats each
github/codeql-action/*sub-action as a separate dependency, so it bumped them in independent PRs and they drifted to three different versions:initautobuildanalyzeinitrecords the CodeQL version into the run's config; the later steps must load that config with a matching version. Sinceinitlagged, Autobuild refused to load the older config.Fix (two parts)
Align the versions now — pin all three steps to the same commit,
v4.37.9(cdf488f), whichanalyzealready used. The sub-actions share one repo, so the tag resolves to one SHA for all three.Prevent the drift recurring — add a Dependabot
groupmatchinggithub/codeql-action*so all three sub-actions are bumped together in a single PR and always stay on the same version.Independent of #656 (merged) which handled the twine / dependabot-label / dependency-pinning issues.
🤖 Generated with Claude Code