Skip to content

ci: modified codeql-action steps to have the same version - #916

Open
OdysseasKalaitsidis wants to merge 3 commits into
urunc-dev:mainfrom
OdysseasKalaitsidis:ci/fix-codeql-version-mismatch
Open

ci: modified codeql-action steps to have the same version#916
OdysseasKalaitsidis wants to merge 3 commits into
urunc-dev:mainfrom
OdysseasKalaitsidis:ci/fix-codeql-version-mismatch

Conversation

@OdysseasKalaitsidis

@OdysseasKalaitsidis OdysseasKalaitsidis commented Aug 7, 2026

Copy link
Copy Markdown

Description

After investigating the CodeQL workflow, I found that commit 9d371bc changed only the init step to v4.37.4 but left the autobuild and analyze steps on the older version of v4.36.2. Since all steps come from the same codeql-action and need to stay on the same version, the version drift caused the init to write a config file newer than the analyze could read and the run failed with
"Loaded a configuration file for version '4.37.4', but running
version '4.36.2'"

The PR modifies the codeql.yml to point to the same new version v4.37.4

Related issues

Fixes #915

How was this tested?

I pulled the actual failed run 31158525443 to confirm the error and checked via GitHub API the version tag and the commit SHA it points to. It confirmed that the init step new SHA is the v4.37.4 so the comment # v3.29.5 next to it in the file was wrong and that the old SHA is still used by the autobuild and analze which was the v4.36.2

LLM usage

Claude Sonnet 5 assisted me in investigating the failing run. I reviewed the diagnosis and the fix myself before submitting this PR.

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 822dda5
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/6a7629672f60db00076f677e

@Nachiket-Roy

Copy link
Copy Markdown

To prevent this from happening again, we need to update dependabot.yaml and group these 3 together so there is no drift

@cmainas

cmainas commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

To prevent this from happening again, we need to update dependabot.yaml and group these 3 together so there is no drift

Yeap, that sounds a good idea. Let;s add it in this PR.

@OdysseasKalaitsidis

Copy link
Copy Markdown
Author

Totally agree, adding the changes to the dependabot.yaml to the PR.

@cmainas

cmainas commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Thank you @OdysseasKalaitsidis , you will also need to add yourself in https://github.com/urunc-dev/urunc/blob/main/.github/contributors.yaml

@OdysseasKalaitsidis

Copy link
Copy Markdown
Author

@cmainas thank you for the instruction, added myself as odykal on contributors.yaml

@Nachiket-Roy

Copy link
Copy Markdown

@cmainas thank you for the instruction, added myself as odykal on contributors.yaml

Hey, you also removed some of the past contributors. Also, ensure that the commits are DCO-signed and there are no merge commits.

@OdysseasKalaitsidis

Copy link
Copy Markdown
Author

@Nachiket-Roy Thank you for appointing the issues with my PR. Fixing, wont happen again

The init, autobuild and analyse in codeql.yml had drifted to different CodeQL  versions 4.37.4 vs 4.36.2, causing codeql runs to fail
Fixes: urunc-dev#915

Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
Modified dependabot.yml to group codeql-action so dependabot groups all steps together in a single PR instead one at a time, preventing the version drift that caused urunc-dev#915

Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
Signed-off-by: Odysseas Kalaitsidis <odysseaskalaitsides@gmail.com>
@OdysseasKalaitsidis
OdysseasKalaitsidis force-pushed the ci/fix-codeql-version-mismatch branch from 0ae62ce to 822dda5 Compare August 7, 2026 18:52
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.

CodeQl workflow fails

3 participants