Skip to content

group github/codeql-action/* dependabot updates into one PR - #2914

Merged
Harsh Rawat (rawahars) merged 1 commit into
mainfrom
copilot/fix-pull-2910-failure
Sep 3, 2026
Merged

group github/codeql-action/* dependabot updates into one PR#2914
Harsh Rawat (rawahars) merged 1 commit into
mainfrom
copilot/fix-pull-2910-failure

Conversation

Copilot AI commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

CodeQL requires every step in a run to be on the same version — init stamps its version into the config file that analyze later loads, and a mismatch fails the job in ~1s before any query runs. Because codeql.yml pins init, analyze, and upload-sarif separately, Dependabot bumps them in three independent PRs (#2910, #2911, #2912), each of which breaks CodeQL on its own until the last one merges.

##[error]Loaded a configuration file for version '4.37.9', but running version '4.37.7'
CodeQL job status was configuration error.

The three pins are full 40-char SHAs, and Dependabot's github_actions parser names SHA-pinned actions by their full sub-path (github/codeql-action/init) rather than the shared repo name — so they are three distinct dependencies. Tag-pinned repos never hit this.

Changes

  • .github/dependabot.yml — added a groups: entry to the existing github-actions ecosystem block so all codeql-action sub-actions are bumped together:
    groups:
      codeql-action:
        patterns:
          - "github/codeql-action/*"

Pattern choice

Dependabot matches group patterns with its own WildcardMatcher, which compiles * to regex .*, so github/codeql-action* would also match today. The slash form is preferred as it holds under both glob semantics and cannot match an unrelated github/codeql-action-fork. It matches exactly the three sub-actions and none of the other actions referenced in .github/. Same pattern used by containerd/containerd, etcd-io/etcd, and cli/cli.

Note for reviewers

Grouping applies only to newly created PRs; it will not retroactively combine ones already open. Clearing the current breakage requires closing #2910, #2911, and #2912 unmerged and letting Dependabot recreate them as a single grouped PR on its next run.

This does not change the codeql-action pins themselves — CodeQL on main is unaffected.

The CodeQL action requires every step in a run to be on the same version:
`init` stamps its version into the config that `analyze` later loads, so a
mismatch fails the job with "Loaded a configuration file for version X, but
running version Y".

codeql.yml pins `init`, `analyze`, and `upload-sarif` separately, and
Dependabot treats each sub-action as its own dependency, so ungrouped it
opens one PR per sub-action (e.g. #2910, #2911, #2912) and each one breaks
CodeQL until the last lands. Group them so they are bumped together.

Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.com>
@rawahars
Harsh Rawat (rawahars) merged commit 93aa61d into main Sep 3, 2026
46 of 47 checks passed
@rawahars
Harsh Rawat (rawahars) deleted the copilot/fix-pull-2910-failure branch September 3, 2026 07:00
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.

4 participants