Skip to content

Produce separate SARIF file for quality-queries alerts #6424

Produce separate SARIF file for quality-queries alerts

Produce separate SARIF file for quality-queries alerts #6424

Triggered via pull request June 16, 2025 16:26
Status Failure
Total duration 2m 45s
Artifacts

__unset-environment.yml

on: pull_request
Matrix: Test unsetting environment variables
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 6 warnings
Test unsetting environment variables (ubuntu-latest, nightly-latest)
Error running analysis for cpp: Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/0.0.0-20250616/x64/codeql/codeql database interpret-results --threads=4 --format=sarif-latest -v --output=../results/security/cpp.sarif --no-sarif-add-snippets --print-diagnostics-summary --print-metrics-summary --sarif-add-baseline-file-info --sarif-codescanning-config=/home/runner/work/_temp/user-config.yaml --sarif-group-rules-by-pack --sarif-include-query-help=always --sublanguage-file-coverage --sarif-run-property=jobRunUuid=699b6d72-491c-4f49-a212-c9ac9b08a742 --sarif-run-property=incrementalMode=diff-informed --sarif-include-diagnostics /home/runner/work/_temp/customDbLocation/cpp". Exit code was 2 and error was: A fatal error occurred: Could not write SARIF file (eventual cause: NoSuchFileException "/home/runner/work/codeql-action/results/security/cpp.sarif"). See the logs for more details.
Test unsetting environment variables (ubuntu-latest, linked)
Error running analysis for cpp: Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.22.0/x64/codeql/codeql database interpret-results --threads=4 --format=sarif-latest -v --output=../results/security/cpp.sarif --no-sarif-add-snippets --print-diagnostics-summary --print-metrics-summary --sarif-add-baseline-file-info --sarif-codescanning-config=/home/runner/work/_temp/user-config.yaml --sarif-group-rules-by-pack --sarif-include-query-help=always --sublanguage-file-coverage --sarif-run-property=jobRunUuid=b67ceaed-2dd4-43f0-9cd0-2e6a7f67d834 --sarif-run-property=incrementalMode=diff-informed --sarif-include-diagnostics /home/runner/work/_temp/customDbLocation/cpp". Exit code was 2 and error was: A fatal error occurred: Could not write SARIF file (eventual cause: NoSuchFileException "/home/runner/work/codeql-action/results/security/cpp.sarif"). See the logs for more details.
Test unsetting environment variables (ubuntu-latest, nightly-latest)
Encountered an error when evaluating display name ${{ format('CPP_DB="{0}" if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${{RUNNER_TEMP}}/customDbLocation/cpp" ]]; then echo "::error::Did not create a database for CPP, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/cpp'' but actual was ''${{CPP_DB}}''" exit 1 fi CSHARP_DB="{1}" if [[ ! -d "$CSHARP_DB" ]] || [[ ! "$CSHARP_DB" == "${{RUNNER_TEMP}}/customDbLocation/csharp" ]]; then echo "::error::Did not create a database for C Sharp, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/csharp'' but actual was ''${{CSHARP_DB}}''" exit 1 fi GO_DB="{2}" if [[ ! -d "$GO_DB" ]] || [[ ! "$GO_DB" == "${{RUNNER_TEMP}}/customDbLocation/go" ]]; then echo "::error::Did not create a database for Go, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/go'' but actual was ''${{GO_DB}}''" exit 1 fi JAVA_DB="{3}" if [[ ! -d "$JAVA_DB" ]] || [[ ! "$JAVA_DB" == "${{RUNNER_TEMP}}/customDbLocation/java" ]]; then echo "::error::Did not create a database for Java, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/java'' but actual was ''${{JAVA_DB}}''" exit 1 fi JAVASCRIPT_DB="{4}" if [[ ! -d "$JAVASCRIPT_DB" ]] || [[ ! "$JAVASCRIPT_DB" == "${{RUNNER_TEMP}}/customDbLocation/javascript" ]]; then echo "::error::Did not create a database for Javascript, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/javascript'' but actual was ''${{JAVASCRIPT_DB}}''" exit 1 fi PYTHON_DB="{5}" if [[ ! -d "$PYTHON_DB" ]] || [[ ! "$PYTHON_DB" == "${{RUNNER_TEMP}}/customDbLocation/python" ]]; then echo "::error::Did not create a database for Python, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/python'' but actual was ''${{PYTHON_DB}}''" exit 1 fi ', fromJson(steps.analysis.outputs.db-locations).cpp, fromJson(steps.analysis.outputs.db-locations).csharp, fromJson(steps.analysis.outputs.db-locations).go, fromJson(steps.analysis.outputs.db-locations).java, fromJson(steps.analysis.outputs.db-locations).javascript, fromJson(steps.analysis.outputs.db-locations).python) }}. The template is not valid. .github/workflows/__unset-environment.yml (Line: 68, Col: 14): Error reading JToken from JsonReader. Path '', line 0, position 0.
Test unsetting environment variables (ubuntu-latest, nightly-latest)
Expected `which go` to return /home/runner/work/_temp/codeql-action-go-tracing/bin/go, but got /opt/hostedtoolcache/go/1.23.9/x64/bin/go: please ensure that the correct version of Go is installed before the `codeql-action/init` Action is used.
Test unsetting environment variables (ubuntu-latest, nightly-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/codeql-action/codeql-action. Supported file pattern: go.sum
Test unsetting environment variables (ubuntu-latest, linked)
Encountered an error when evaluating display name ${{ format('CPP_DB="{0}" if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${{RUNNER_TEMP}}/customDbLocation/cpp" ]]; then echo "::error::Did not create a database for CPP, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/cpp'' but actual was ''${{CPP_DB}}''" exit 1 fi CSHARP_DB="{1}" if [[ ! -d "$CSHARP_DB" ]] || [[ ! "$CSHARP_DB" == "${{RUNNER_TEMP}}/customDbLocation/csharp" ]]; then echo "::error::Did not create a database for C Sharp, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/csharp'' but actual was ''${{CSHARP_DB}}''" exit 1 fi GO_DB="{2}" if [[ ! -d "$GO_DB" ]] || [[ ! "$GO_DB" == "${{RUNNER_TEMP}}/customDbLocation/go" ]]; then echo "::error::Did not create a database for Go, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/go'' but actual was ''${{GO_DB}}''" exit 1 fi JAVA_DB="{3}" if [[ ! -d "$JAVA_DB" ]] || [[ ! "$JAVA_DB" == "${{RUNNER_TEMP}}/customDbLocation/java" ]]; then echo "::error::Did not create a database for Java, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/java'' but actual was ''${{JAVA_DB}}''" exit 1 fi JAVASCRIPT_DB="{4}" if [[ ! -d "$JAVASCRIPT_DB" ]] || [[ ! "$JAVASCRIPT_DB" == "${{RUNNER_TEMP}}/customDbLocation/javascript" ]]; then echo "::error::Did not create a database for Javascript, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/javascript'' but actual was ''${{JAVASCRIPT_DB}}''" exit 1 fi PYTHON_DB="{5}" if [[ ! -d "$PYTHON_DB" ]] || [[ ! "$PYTHON_DB" == "${{RUNNER_TEMP}}/customDbLocation/python" ]]; then echo "::error::Did not create a database for Python, or created it in the wrong location." \ "Expected location was ''${{RUNNER_TEMP}}/customDbLocation/python'' but actual was ''${{PYTHON_DB}}''" exit 1 fi ', fromJson(steps.analysis.outputs.db-locations).cpp, fromJson(steps.analysis.outputs.db-locations).csharp, fromJson(steps.analysis.outputs.db-locations).go, fromJson(steps.analysis.outputs.db-locations).java, fromJson(steps.analysis.outputs.db-locations).javascript, fromJson(steps.analysis.outputs.db-locations).python) }}. The template is not valid. .github/workflows/__unset-environment.yml (Line: 68, Col: 14): Error reading JToken from JsonReader. Path '', line 0, position 0.
Test unsetting environment variables (ubuntu-latest, linked)
Expected `which go` to return /home/runner/work/_temp/codeql-action-go-tracing/bin/go, but got /opt/hostedtoolcache/go/1.23.9/x64/bin/go: please ensure that the correct version of Go is installed before the `codeql-action/init` Action is used.
Test unsetting environment variables (ubuntu-latest, linked)
Restore cache failed: Dependencies file is not found in /home/runner/work/codeql-action/codeql-action. Supported file pattern: go.sum