mirror of
https://github.com/github/codeql-action
synced 2026-12-01 13:49:37 +08:00
This input is exposed in the CodeQL CLI as the flag --source-root, allowing
users of the CLI to set --source-root different from --working-dir. However,
in codeql-action, these two paths are conflated and it poses problems for
users with complicated build environments, in which a source root may be
a child of the working directory.
Most users should not notice this, as the default value is
${{ github.workspace }}, as it is implied now (`path.resolve()`).
51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
name: 'CodeQL: Init'
|
|
description: 'Set up CodeQL'
|
|
author: 'GitHub'
|
|
inputs:
|
|
tools:
|
|
description: URL of CodeQL tools
|
|
required: false
|
|
# If not specified the Action will check in several places until it finds the CodeQL tools.
|
|
languages:
|
|
description: The languages to be analysed
|
|
required: false
|
|
token:
|
|
default: ${{ github.token }}
|
|
matrix:
|
|
default: ${{ toJson(matrix) }}
|
|
config-file:
|
|
description: Path of the config file to use
|
|
required: false
|
|
db-location:
|
|
description: Path where CodeQL databases should be created. If not specified, a temporary directory will be used.
|
|
required: false
|
|
queries:
|
|
description: Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file; prefix with "+" to use both sets of queries.
|
|
required: false
|
|
packs:
|
|
description: >-
|
|
[Experimental] Comma-separated list of packs to run. Reference a pack in the format `scope/name[@version]`. If `version` is not
|
|
specified, then the latest version of the pack is used. By default, this overrides the same setting in a
|
|
configuration file; prefix with "+" to use both sets of packs.
|
|
|
|
This input is only available in single-language analyses. To use packs in multi-language
|
|
analyses, you must specify packs in the codeql-config.yml file.
|
|
required: false
|
|
external-repository-token:
|
|
description: A token for fetching external config files and queries if they reside in a private repository.
|
|
required: false
|
|
setup-python-dependencies:
|
|
description: Try to auto-install your python dependencies
|
|
required: true
|
|
default: 'true'
|
|
source-root:
|
|
description: The root source-code directory.
|
|
required: true
|
|
default: ${{ github.workspace }}
|
|
outputs:
|
|
codeql-path:
|
|
description: The path of the CodeQL binary used for analysis
|
|
runs:
|
|
using: 'node12'
|
|
main: '../lib/init-action.js'
|