mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Merge pull request #4177 from github/mbg/version-check/recommend-dependabot-grouping
Point at Dependabot `groups` docs in version mismatch error
This commit is contained in:
7
lib/entry-points.js
generated
7
lib/entry-points.js
generated
@@ -151074,7 +151074,12 @@ async function getConfig(tempDir, logger) {
|
|||||||
}
|
}
|
||||||
if (config.version !== getActionVersion()) {
|
if (config.version !== getActionVersion()) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
[
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'.`,
|
||||||
|
"All steps in a workflow that use `github/codeql-action` must use the same version to work correctly.",
|
||||||
|
"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.",
|
||||||
|
"For more information, see https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#groups--"
|
||||||
|
].join(" ")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
@@ -1425,7 +1425,12 @@ export async function getConfig(
|
|||||||
}
|
}
|
||||||
if (config.version !== getActionVersion()) {
|
if (config.version !== getActionVersion()) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`,
|
[
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'.`,
|
||||||
|
"All steps in a workflow that use `github/codeql-action` must use the same version to work correctly.",
|
||||||
|
"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.",
|
||||||
|
"For more information, see https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#groups--",
|
||||||
|
].join(" "),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user