| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ import * as actionsUtil from "./actions-util"; | |||
| 7 | 7 | import { CodeScanning } from "./analyses"; | |
| 8 | 8 | import { getApiClient } from "./api-client"; | |
| 9 | 9 | import { CodeQL, getCodeQL } from "./codeql"; | |
| 10 | - import { Config, isCodeQualityEnabled } from "./config-utils"; | ||
| 10 | + import { Config, isCodeScanningEnabled } from "./config-utils"; | ||
| 11 | 11 | import * as dependencyCaching from "./dependency-caching"; | |
| 12 | 12 | import { EnvVar } from "./environment"; | |
| 13 | 13 | import { Feature, FeatureEnablement } from "./feature-flags"; | |
@@ -142,7 +142,7 @@ export async function tryUploadSarifIfRunFailed( | |||
| 142 | 142 | ||
| 143 | 143 | // If the only enabled analysis kind is `code-quality`, then we shouldn't | |
| 144 | 144 | // upload the failed SARIF to Code Scanning. | |
| 145 | - if (config.analysisKinds.length === 1 && isCodeQualityEnabled(config)) { | ||
| 145 | + if (!isCodeScanningEnabled(config)) { | ||
| 146 | 146 | return { | |
| 147 | 147 | upload_failed_run_skipped_because: | |
| 148 | 148 | "Code Quality is the only enabled analysis kind.", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments