Skip to content

fix(ci): align all codeql-action steps to v4.37.9 - #657

Merged
martin-majlis merged 2 commits into
masterfrom
fix/codeql-action-version-mismatch
Sep 3, 2026
Merged

martin-majlis merged 2 commits into
masterfrom
fix/codeql-action-version-mismatch

Conversation

@martin-majlis

@martin-majlis martin-majlis commented Sep 3, 2026 •

Copy link
Copy Markdown
Owner

Problem

The CodeQL Analyze (python) job fails at the Autobuild step:

We were unable to automatically build your code. Please replace the call to the
autobuild action with your custom build steps. Loaded a configuration file for
version '4.36.3', but running version '4.37.4'

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:

Step Was
init v4.36.3
autobuild v4.37.4
analyze v4.37.9

init records the CodeQL version into the run's config; the later steps must load that config with a matching version. Since init lagged, Autobuild refused to load the older config.

Fix (two parts)

  1. Align the versions now — pin all three steps to the same commit, v4.37.9 (cdf488f), which analyze already used. The sub-actions share one repo, so the tag resolves to one SHA for all three.

  2. Prevent the drift recurring — add a Dependabot group matching github/codeql-action* so all three sub-actions are bumped together in a single PR and always stay on the same version.

groups:
  codeql-action:
    patterns:
      - "github/codeql-action*"

Independent of #656 (merged) which handled the twine / dependabot-label / dependency-pinning issues.

🤖 Generated with Claude Code

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
martin-majlis force-pushed the fix/codeql-action-version-mismatch branch from 5fad522 to 637b03b Compare September 3, 2026 20:20
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
@martin-majlis
martin-majlis merged commit b08deb4 into master Sep 3, 2026
22 of 40 checks passed
@martin-majlis
martin-majlis deleted the fix/codeql-action-version-mismatch branch September 3, 2026 20:29
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