Skip to content

Commit 7b6a151

Browse files
authored
Merge pull request #4177 from github/mbg/version-check/recommend-dependabot-grouping
Point at Dependabot `groups` docs in version mismatch error
2 parents fa2bea7 + 29b01b6 commit 7b6a151

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/config-utils.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,12 @@ export async function getConfig(
14251425
}
14261426
if (config.version !== getActionVersion()) {
14271427
throw new ConfigurationError(
1428-
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`,
1428+
[
1429+
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'.`,
1430+
"All steps in a workflow that use `github/codeql-action` must use the same version to work correctly.",
1431+
"If you are using Dependabot to manage dependency updates, you can configure a dependency group to update all `github/codeql-action` steps at the same time.",
1432+
"For more information, see https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#groups--",
1433+
].join(" "),
14291434
);
14301435
}
14311436

0 commit comments

Comments
 (0)