Actions for running CodeQL analysis
Перейти к файлу
Andrew Eisenberg 0f53828890
Use older ubuntu version
2024-05-16 14:42:50 -07:00
.github Use older ubuntu version 2024-05-16 14:42:50 -07:00
.vscode VSCode settings: set default formatter for TS 2023-10-27 17:21:58 +01:00
analyze Document `action.inputs.token` (#2110) 2024-02-08 09:45:27 +00:00
autobuild Document `action.inputs.token` (#2110) 2024-02-08 09:45:27 +00:00
init Update docs for `build-mode: autobuild` 2024-05-15 09:44:06 +01:00
lib Merge pull request #2286 from github/koesie10/ghec-dr-db-upload 2024-05-15 14:49:47 +02:00
node_modules Update checked-in dependencies 2024-05-15 09:38:11 +00:00
pr-checks Use older ubuntu version 2024-05-16 14:42:50 -07:00
python-setup Restore `python-setup/check_python12.ps1` 2024-04-08 10:22:09 +02:00
queries Internal queries: Replace deprecated predicates 2024-01-24 12:14:58 +00:00
resolve-environment Document `action.inputs.token` (#2110) 2024-02-08 09:45:27 +00:00
src Merge pull request #2286 from github/koesie10/ghec-dr-db-upload 2024-05-15 14:49:47 +02:00
tests Remove some inadvertently checked in build files 2024-02-13 15:42:39 +00:00
upload-sarif Upload debug artifacts for upload-sarif 2024-03-22 14:15:17 +01:00
.editorconfig
.eslintignore Delete the runner 2022-11-14 16:23:14 +00:00
.eslintrc.json Enable no cyclic dependencies eslint rule 2023-07-19 15:53:39 +01:00
.git-blame-ignore-revs Ignore prior commit in git blame 2023-07-25 17:59:56 +02:00
.gitattributes
.gitignore Remove some inadvertently checked in build files 2024-02-13 15:42:39 +00:00
.npmrc Add config file to support npm v8 and v9 simultaneously 2022-11-14 22:15:08 +00:00
.pre-commit-config.yaml Add pre-commit configuration 2023-10-26 11:03:40 +02:00
CHANGELOG.md Move logging messages to downstream function and add deprecation notice 2024-05-13 14:51:06 +01:00
CODEOWNERS Delete `python-setup/` 2024-04-04 17:16:05 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Add a compatibility table to the README 2024-05-07 13:58:01 -07:00
LICENSE
README.md Update README.md 2024-05-08 11:44:51 -07:00
package-lock.json Bump the npm group across 1 directory with 4 updates 2024-05-15 09:37:09 +00:00
package.json Bump the npm group across 1 directory with 4 updates 2024-05-15 09:37:09 +00:00
tsconfig.json Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00:00
x Add empty file 2024-05-16 11:41:35 -07:00

README.md

CodeQL Action

This action runs GitHub's industry-leading semantic code analysis engine, CodeQL, against a repository's source code to find security vulnerabilities. It then automatically uploads the results to GitHub so they can be displayed on pull requests and in the repository's security tab. CodeQL runs an extensible set of queries, which have been developed by the community and the GitHub Security Lab to find common vulnerabilities in your code.

For a list of recent changes, see the CodeQL Action's changelog.

License

This project is released under the MIT License.

The underlying CodeQL CLI, used in this action, is licensed under the GitHub CodeQL Terms and Conditions. As such, this action may be used on open source projects hosted on GitHub, and on private repositories that are owned by an organisation with GitHub Advanced Security enabled.

Usage

We recommend using default setup to configure CodeQL analysis for your repository. For more information, see "Configuring default setup for code scanning."

You can also configure advanced setup for a repository to find security vulnerabilities in your code using a highly customizable code scanning configuration. For more information, see "Configuring advanced setup for code scanning" and "Customizing your advanced setup for code scanning."

Permissions

All advanced setup code scanning workflows must have the security-events: write permission. Workflows in private repositories must additionally have the contents: read permission. For more information, see "Assigning permissions to jobs."

Supported versions of the CodeQL Action

The following versions of the CodeQL Action are currently supported:

  • v3 (latest)
  • v2 (deprecated, support will end on December 5th, 2024)

The only difference between CodeQL Action v2 and v3 is the version of Node.js on which they run. CodeQL Action v3 runs on Node 20, while CodeQL Action v2 runs on Node 16.

To provide the best experience to customers using older versions of GitHub Enterprise Server, we will continue to release CodeQL Action v2 so that these customers can continue to run the latest version of CodeQL as long as their version of GitHub Enterprise Server is supported. For example CodeQL Action v3.22.11 was the first release of CodeQL Action v3 and is functionally identical to v2.22.11. This approach provides an easy way to track exactly which features are included in different versions by looking at the minor and patch version numbers.

For more information, see "Code scanning: deprecation of CodeQL Action v2."

Supported versions of the CodeQL CLI and GitHub Enterprise Server

We typically release new minor versions of the CodeQL Action and CLI when a new minor version of GitHub Enterprise Server (GHES) is released. When a version of GHES is deprecated, the CodeQL Action and CLI releases that shipped with it are deprecated as well.

Recommended CodeQL Action Recommended CodeQL CLI Version GitHub Environment
v3 default (do not pass a tools input) GitHub.com
3.22.12 2.15.5 Enterprise Server 3.12
2.22.1 2.14.6 Enterprise Server 3.11
2.20.3 2.13.5 Enterprise Server 3.10
2.2.9 2.12.5 Enterprise Server 3.9

CodeQL Action v2 will stop receiving updates when GHES 3.11 is deprecated.

See the full list of GHES release and deprecation dates at GitHub Enterprise Server releases.

Troubleshooting

Read about troubleshooting code scanning.

Contributing

This project welcomes contributions. See CONTRIBUTING.md for details on how to build, install, and contribute.