mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 09:18:47 +00:00
Always skip database upload if AnalysisKind.CodeScanning is not enabled
This commit is contained in:
Generated
+6
@@ -94082,6 +94082,12 @@ async function uploadDatabases(repositoryNwo, codeql, config, apiDetails, logger
|
||||
logger.debug("Database upload disabled in workflow. Skipping upload.");
|
||||
return;
|
||||
}
|
||||
if (!config.analysisKinds.includes("code-scanning" /* CodeScanning */)) {
|
||||
logger.debug(
|
||||
`Not uploading database because 'analysis-kinds: ${"code-scanning" /* CodeScanning */}' is not enabled.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (isInTestMode()) {
|
||||
logger.debug("In test mode. Skipping database upload.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user