Skip to content

Use the same codeql-action version in every step - #651

Merged
j-t-1 merged 2 commits into
erocarrera:masterfrom
HuzaifaChaudary:ci/codeql-action-same-version
Nov 4, 2026
Merged

j-t-1 merged 2 commits into
erocarrera:masterfrom
HuzaifaChaudary:ci/codeql-action-same-version

Conversation

@HuzaifaChaudary

Copy link
Copy Markdown
Contributor

#637 moved codeql-action/analyze to 4.39.1 and left init and autobuild on 4.38.2 . the action refuses to run with mixed versions :

Loaded a configuration file for version '4.38.2', but running version '4.39.1'. All steps in a workflow that use `github/codeql-action` must use the same version to work correctly.

so CodeQL has failed on master since #637 , and on every pull request opened after it .

the first commit points init , autobuild and the upload-sarif step in scorecards at the 4.39.1 commit that analyze already pins , 9b32540 , which is what the v4.39.1 tag points to . the second adds a dependabot group for github/codeql-action* , so the next bump moves all the steps in one pull request , as the error message suggests .

erocarrera#637 moved codeql-action/analyze to 4.39.1 and left init and autobuild on 4.38.2 . the action refuses to run like that , "Loaded a configuration file for version '4.38.2', but running version '4.39.1'" , so CodeQL has failed on master since erocarrera#637 and on every pull request opened after it . init , autobuild and the upload-sarif step in scorecards now use the 4.39.1 commit that analyze already pins , 9b32540 , which is what the v4.39.1 tag points to .
dependabot opens one pull request per codeql-action step , which is how erocarrera#637 bumped analyze alone . a group puts init , autobuild , analyze and upload-sarif in one pull request , which is what the codeql error message suggests .
Copilot AI balanced review requested due to automatic review settings November 3, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@j-t-1

j-t-1 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks for this.

@j-t-1
j-t-1 merged commit 276eada into erocarrera:master Nov 4, 2026
25 checks passed
@j-t-1

j-t-1 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

@HuzaifaChaudary and @nightlark

The PRs that were opened prior to this still give the error:

Error: analyze post-action step failed: Loaded a configuration file for version '4.38.2', but running version '4.39.1'.

This PR has fixed this for new PRs.

@HuzaifaChaudary

Copy link
Copy Markdown
Contributor Author

thanks . #647 and #649 have master merged in now , so their codeql runs pick up the fix .

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.

3 participants