mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 09:18:47 +00:00
Fail if no SARIF files were uploaded
This commit is contained in:
@@ -97,6 +97,14 @@ async function run() {
|
||||
sarifPath,
|
||||
category,
|
||||
);
|
||||
|
||||
// Fail if we didn't upload anything.
|
||||
if (Object.keys(uploadResults).length === 0) {
|
||||
throw new ConfigurationError(
|
||||
`No SARIF files found to upload in "${sarifPath}".`,
|
||||
);
|
||||
}
|
||||
|
||||
const codeScanningResult =
|
||||
uploadResults[analyses.AnalysisKind.CodeScanning];
|
||||
if (codeScanningResult !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user