mirror of
https://github.com/github/codeql-action
synced 2026-10-07 00:30:17 +03:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
56 lines
2.2 KiB
YAML
56 lines
2.2 KiB
YAML
name: 'CodeQL: Setup'
|
|
description: 'Installs the CodeQL CLI'
|
|
author: 'GitHub'
|
|
inputs:
|
|
tools:
|
|
description: >-
|
|
By default, the Action will use the recommended version of the CodeQL
|
|
Bundle to analyze your project. You can override this choice using this
|
|
input. One of:
|
|
|
|
- A local path to a CodeQL Bundle tarball, or
|
|
- The URL of a CodeQL Bundle tarball GitHub release asset, or
|
|
- A special value `linked` which uses the version of the CodeQL tools
|
|
that the Action has been bundled with.
|
|
- A special value `nightly` which uses the latest nightly version of the
|
|
CodeQL tools. Note that this is unstable and not recommended for
|
|
production use.
|
|
|
|
If not specified, the Action will check in several places until it finds
|
|
the CodeQL tools.
|
|
required: false
|
|
languages:
|
|
description: >-
|
|
A comma-separated list of CodeQL languages that the installed CodeQL CLI will be used to
|
|
analyze. If specified, the Action may use this list to select a CodeQL CLI version that is
|
|
best suited to analyzing those languages, for example by preferring a version that has a
|
|
cached overlay-base database for the specified languages.
|
|
required: false
|
|
analysis-kinds:
|
|
description: >-
|
|
[Internal] A comma-separated list of analysis kinds that the installed CodeQL CLI will be used
|
|
for. If specified, the Action may use this list to select a CodeQL CLI version that is best
|
|
suited to those analysis kinds.
|
|
|
|
Available options are the same as for the `analysis-kinds` input on the `init` Action.
|
|
default: 'code-scanning'
|
|
required: true
|
|
token:
|
|
description: GitHub token to use for authenticating with this instance of GitHub.
|
|
default: ${{ github.token }}
|
|
required: false
|
|
matrix:
|
|
default: ${{ toJson(matrix) }}
|
|
required: false
|
|
external-repository-token:
|
|
description: A token for fetching additional files from private repositories in the same GitHub instance that is running this action.
|
|
required: false
|
|
outputs:
|
|
codeql-path:
|
|
description: The path of the CodeQL binary that was installed.
|
|
codeql-version:
|
|
description: The version of the CodeQL binary that was installed.
|
|
runs:
|
|
using: node24
|
|
main: '../lib/setup-codeql-entry.js'
|