Actions for running CodeQL analysis
Перейти к файлу
Andrew Eisenberg e7f0c1a7b8
Add Swift+Linux deprecation warning
2024-08-01 15:46:19 -07:00
.github Remove redundant PR check 2024-07-31 10:56:00 +01: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 Fix #2367, add codeql-version to outputs 2024-07-10 11:58:42 -04:00
lib Merge branch 'main' into update-bundle/codeql-bundle-v2.18.1 2024-07-25 08:44:30 -07:00
node_modules Update checked-in dependencies 2024-07-29 17:49:13 +00:00
pr-checks Remove redundant PR check 2024-07-31 10:56:00 +01: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 branch 'main' into update-bundle/codeql-bundle-v2.18.1 2024-07-25 08:44:30 -07:00
start-proxy Address comments 2024-07-24 11:42:14 +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 Add a `.editorconfig` with our chosen formatting options. 2020-06-23 14:38:30 +01:00
.eslintignore Delete the runner 2022-11-14 16:23:14 +00:00
.git-blame-ignore-revs Ignore prior commit in git blame 2023-07-25 17:59:56 +02:00
.gitattributes Refactor PR checks 2021-09-08 13:59:52 +01:00
.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 Add Swift+Linux deprecation warning 2024-08-01 15:46:19 -07:00
CODEOWNERS Delete `python-setup/` 2024-04-04 17:16:05 +02:00
CODE_OF_CONDUCT.md Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f) 2020-04-28 17:23:37 +02:00
CONTRIBUTING.md Add a compatibility table to the README 2024-05-07 13:58:01 -07:00
LICENSE Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f) 2020-04-28 17:23:37 +02:00
README.md Add details of supported versions for GHES 3.13 2024-06-12 16:41:07 +01:00
eslint.config.mjs Fix eslint configuration 2024-07-16 15:13:51 -07:00
package-lock.json Bump the npm group with 2 updates 2024-07-29 17:48:05 +00:00
package.json Bump the npm group with 2 updates 2024-07-29 17:48:05 +00:00
tsconfig.json Upgrade TypeScript to 9.2.0 2023-01-18 20:59:57 +00: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
v3.24.11 v2.16.6 Enterprise Server 3.13
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.