Repository navigation
ci: pin every codeql-action step to v4.37.7 - #74
Merged
Merged
Conversation
Dependabot cannot fix this, and its two open PRs prove it. It raises one PR per action path, so init and analyze move independently — but CodeQL requires them to be the exact same version, not merely the same major. Bumping init to v4.37.6 (#68) left analyze on v3.28.1, and #69 then failed with Loaded a configuration file for version '4.37.6', but running version '4.37.7' because by the time it was recreated the target had moved again. Neither PR can be green while the other is open, no matter the order they merge in. So all three uses go to v4.37.7 in one commit: init and analyze in codeql.yml, and upload-sarif in scorecard.yml, which was on the same stale pin. Keeping them on one line means the next bump is one decision instead of a race between three. Supersedes #69.
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.
Supersedes #69, which cannot pass on its own.
Why Dependabot can't do this one
Dependabot opens one PR per action path, so
initandanalyzemove independently. CodeQL requires them to be the exact same version, not merely the same major.Merging #68 took
initto v4.37.6 whileanalyzestayed on v3.28.1. #69 then failed with:because by the time Dependabot recreated it, the target had moved again. Neither PR can be green while the other is open, in either merge order. This is structural, not a one-off.
What this does
All three uses go to v4.37.7 in one commit:
codeql.ymlinitcodeql.ymlanalyzescorecard.ymlupload-sarifupload-sarifwas on the same stale pin and would have drifted next. Keeping all three on one line makes the next bump one decision rather than a race between three PRs.Note that CodeQL was passing on
maindespite the v4/v3 split, so this is consistency and future-proofing, not an outage fix.