Skip to content

Commit d1ac956

Browse files
committed
Change check to be restrictive by default
1 parent c77b3fb commit d1ac956

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/init-action-post.js

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

src/init-action-post-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as actionsUtil from "./actions-util";
77
import { CodeScanning } from "./analyses";
88
import { getApiClient } from "./api-client";
99
import { CodeQL, getCodeQL } from "./codeql";
10-
import { Config, isCodeQualityEnabled } from "./config-utils";
10+
import { Config, isCodeScanningEnabled } from "./config-utils";
1111
import * as dependencyCaching from "./dependency-caching";
1212
import { EnvVar } from "./environment";
1313
import { Feature, FeatureEnablement } from "./feature-flags";
@@ -142,7 +142,7 @@ export async function tryUploadSarifIfRunFailed(
142142

143143
// If the only enabled analysis kind is `code-quality`, then we shouldn't
144144
// upload the failed SARIF to Code Scanning.
145-
if (config.analysisKinds.length === 1 && isCodeQualityEnabled(config)) {
145+
if (!isCodeScanningEnabled(config)) {
146146
return {
147147
upload_failed_run_skipped_because:
148148
"Code Quality is the only enabled analysis kind.",

0 commit comments

Comments
 (0)