Skip to content

Fix upload-sarif Action failing if there are no Code Scanning SARIF files #682

Fix upload-sarif Action failing if there are no Code Scanning SARIF files

Fix upload-sarif Action failing if there are no Code Scanning SARIF files #682

Triggered via pull request September 18, 2025 14:03
Status Failure
Total duration 2m 27s
Artifacts

__upload-quality-sarif.yml

on: pull_request
Matrix: Upload-sarif: code quality endpoint
Fit to window
Zoom out
Zoom in

Annotations

3 errors, 6 warnings, and 1 notice
Upload-sarif: code quality endpoint (ubuntu-latest, default)
Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.23.0/x64/codeql/codeql database init --force-overwrite --db-cluster /home/runner/work/_temp/codeql_databases --source-root=/home/runner/work/codeql-action/codeql-action --calculate-language-specific-baseline --extractor-include-aliases --sublanguage-file-coverage --language=cpp --language=csharp --language=java --language=javascript --language=python --begin-tracing --trace-process-name=Runner.Worker.exe --codescanning-config=/home/runner/work/_temp/user-config.yaml". Exit code was 2 and error was: A fatal error occurred: No queries defined for cpp. See the logs for more details.
Upload-sarif: code quality endpoint (windows-latest, default)
Encountered a fatal error while running "C:\hostedtoolcache\windows\CodeQL\2.23.0\x64\codeql\codeql.exe database init --force-overwrite --db-cluster D:\a\_temp\codeql_databases --source-root=D:\a\codeql-action\codeql-action --calculate-language-specific-baseline --extractor-include-aliases --sublanguage-file-coverage --language=cpp --language=csharp --language=java --language=javascript --language=python --begin-tracing --trace-process-name=Runner.Worker.exe --codescanning-config=D:\a\_temp\user-config.yaml". Exit code was 2 and error was: A fatal error occurred: No queries defined for cpp. See the logs for more details.
Upload-sarif: code quality endpoint (macos-latest, default)
Encountered a fatal error while running "/Users/runner/hostedtoolcache/CodeQL/2.23.0/arm64/codeql/codeql database init --force-overwrite --db-cluster /Users/runner/work/_temp/codeql_databases --source-root=/Users/runner/work/codeql-action/codeql-action --calculate-language-specific-baseline --extractor-include-aliases --sublanguage-file-coverage --language=cpp --language=csharp --language=java --language=javascript --language=python --begin-tracing --trace-process-name=Runner.Worker.exe --codescanning-config=/Users/runner/work/_temp/user-config.yaml". Exit code was 2 and error was: A fatal error occurred: No queries defined for cpp. See the logs for more details.
Upload-sarif: code quality endpoint (ubuntu-latest, default)
Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.
Upload-sarif: code quality endpoint (ubuntu-latest, default)
1 diagnostic(s) could not be written to the database and will not appear on the Tool Status Page.
Upload-sarif: code quality endpoint (windows-latest, default)
Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.
Upload-sarif: code quality endpoint (windows-latest, default)
1 diagnostic(s) could not be written to the database and will not appear on the Tool Status Page.
Upload-sarif: code quality endpoint (macos-latest, default)
Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.
Upload-sarif: code quality endpoint (macos-latest, default)
2 diagnostic(s) could not be written to the database and will not appear on the Tool Status Page.
Upload-sarif: code quality endpoint (windows-latest, default)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677