mirror of
https://github.com/github/codeql-action.git
synced 2025-12-25 08:40:12 +08:00
69 lines
2.9 KiB
YAML
69 lines
2.9 KiB
YAML
name: "CodeQL: Finish"
|
|
description: "Finalize CodeQL database"
|
|
author: "GitHub"
|
|
inputs:
|
|
check_name:
|
|
description: The name of the check run to add text to.
|
|
required: false
|
|
output:
|
|
description: The path of the directory in which to save the SARIF results
|
|
required: false
|
|
default: "../results"
|
|
upload:
|
|
description: Upload the SARIF file to Code Scanning
|
|
required: false
|
|
default: "true"
|
|
cleanup-level:
|
|
description: "Level of cleanup to perform on CodeQL databases at the end of the analyze step. This should either be 'none' to skip cleanup, or be a valid argument for the --mode flag of the CodeQL CLI command 'codeql database cleanup' as documented at https://codeql.github.com/docs/codeql-cli/manual/database-cleanup"
|
|
required: false
|
|
default: "brutal"
|
|
ram:
|
|
description: >-
|
|
The amount of memory in MB that can be used by CodeQL for database finalization and query execution.
|
|
By default, this action will use the same amount of memory as previously set in the "init" action.
|
|
If the "init" action also does not have an explicit "ram" input, this action will use most of the
|
|
memory available in the system (which for GitHub-hosted runners is 6GB for Linux, 5.5GB for Windows,
|
|
and 13GB for macOS).
|
|
required: false
|
|
add-snippets:
|
|
description: Specify whether or not to add code snippets to the output sarif file.
|
|
required: false
|
|
default: "false"
|
|
skip-queries:
|
|
description: If this option is set, the CodeQL database will be built but no queries will be run on it. Thus, no results will be produced.
|
|
required: false
|
|
default: "false"
|
|
threads:
|
|
description: >-
|
|
The number of threads that can be used by CodeQL for database finalization and query execution.
|
|
By default, this action will use the same number of threads as previously set in the "init" action.
|
|
If the "init" action also does not have an explicit "threads" input, this action will use all the
|
|
hardware threads available in the system (which for GitHub-hosted runners is 2 for Linux and Windows
|
|
and 3 for macOS).
|
|
required: false
|
|
checkout_path:
|
|
description: "The path at which the analyzed repository was checked out. Used to relativize any absolute paths in the uploaded SARIF file."
|
|
required: false
|
|
default: ${{ github.workspace }}
|
|
category:
|
|
description: String used by Code Scanning for matching the analyses
|
|
required: false
|
|
upload-database:
|
|
description: Whether to upload the resulting CodeQL database
|
|
required: false
|
|
default: "true"
|
|
wait-for-processing:
|
|
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
|
|
required: true
|
|
default: "true"
|
|
token:
|
|
default: ${{ github.token }}
|
|
matrix:
|
|
default: ${{ toJson(matrix) }}
|
|
outputs:
|
|
db-locations:
|
|
description: A map from language to absolute path for each database created by CodeQL.
|
|
runs:
|
|
using: "node12"
|
|
main: "../lib/analyze-action.js"
|