mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Only attempt to upload on dotcom
This commit is contained in:
5
lib/analyze-action.js
generated
5
lib/analyze-action.js
generated
@@ -34,6 +34,11 @@ async function sendStatusReport(startedAt, stats, error) {
|
||||
await actionsUtil.sendStatusReport(statusReport);
|
||||
}
|
||||
async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
|
||||
// Do nothing when not running against github.com
|
||||
if (config.gitHubVersion.type !== util.GitHubVariant.DOTCOM) {
|
||||
logger.debug("Not running against github.com. Skipping upload.");
|
||||
return;
|
||||
}
|
||||
if (!(await actionsUtil.isAnalyzingDefaultBranch())) {
|
||||
// We only want to upload a database if we are analyzing the default branch.
|
||||
logger.debug("Not analyzing default branch. Skipping upload.");
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user