CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security
Перейти к файлу
Henry Mercer b6a787d4a0
Merge pull request #8902 from github/dependabot/github_actions/actions/cache-3
Bump actions/cache from 2 to 3
2022-04-27 15:12:58 +01:00
.devcontainer Update CodeSpaces configuration 2021-10-15 15:38:16 +02:00
.github Merge pull request #8902 from github/dependabot/github_actions/actions/cache-3 2022-04-27 15:12:58 +01:00
.vscode Apply suggestions from code review 2021-03-11 15:57:44 +01:00
change-notes Python: Update change notes for 1.26 2020-12-02 14:01:46 +01:00
config Merge pull request #8748 from smowton/smowton/admin/dependent-dataflow-configs 2022-04-22 08:56:00 +01:00
cpp Merge pull request #8796 from erik-krogh/redundantImport 2022-04-27 12:39:51 +02:00
csharp Merge pull request #8796 from erik-krogh/redundantImport 2022-04-27 12:39:51 +02:00
docs Merge pull request #8865 from smowton/smowton/admin/claim-java-18-support 2022-04-26 11:25:26 +01:00
java Add missing QLDoc 2022-04-26 14:07:07 +02:00
javascript Merge pull request #8796 from erik-krogh/redundantImport 2022-04-27 12:39:51 +02:00
misc Add exclusion rules for internal diagnostics queries to all the suite selectors (previously it was only excluded in the Code Scanning selector). 2022-04-21 10:11:26 +01:00
python Merge pull request #8693 from erik-krogh/pyApi 2022-04-27 13:19:50 +02:00
ql Merge branch 'main' into redundantImport 2022-04-26 14:24:51 +02:00
ruby Merge pull request #8796 from erik-krogh/redundantImport 2022-04-27 12:39:51 +02:00
swift Swift: testing non-trivial dataclass properties 2022-04-27 10:17:49 +02:00
.bazelrc Swift: first skeleton extractor 2022-04-12 12:40:59 +02:00
.bazelversion Bazel: reorganization 2022-04-12 12:40:59 +02:00
.codeqlmanifest.json Misc: Allow `*/ql/consistency-queries/qlpack.yml` 2022-02-04 12:06:50 +01:00
.editorconfig Normalize all text files to LF 2018-09-23 16:24:31 -07:00
.gitattributes Upgrade scripts testing: set initial dbschemes 2022-02-08 11:11:41 -08:00
.gitignore Swift: testing non-trivial dataclass properties 2022-04-27 10:17:49 +02:00
.lgtm.yml JS: Exclude test cases from extraction 2019-05-07 14:36:35 +01:00
.pre-commit-config.yaml Swift: removed spurious `mock` import 2022-04-27 09:11:14 +02:00
BUILD.bazel Swift: first skeleton extractor 2022-04-12 12:40:59 +02:00
CODEOWNERS Update CODEOWNERS for documentation and license 2022-04-11 12:33:23 +01:00
CODE_OF_CONDUCT.md Update code of conduct in line with GH 2020-04-23 10:19:13 +01:00
CONTRIBUTING.md Replace `help.semmle.com` links by `codeql.github.com` links 2022-04-22 20:42:11 +02:00
LICENSE Relicense under MIT 2020-04-07 12:03:26 +01:00
README.md Update README.md 2022-04-20 15:03:49 +01:00
WORKSPACE.bazel Bazel: rename workspace to codeql 2022-04-12 17:37:29 +02:00
conftest.py Swift: add unit tests to code generation 2022-04-27 08:24:11 +02:00
defs.bzl Bazel: code reorganization 2022-04-12 12:40:59 +02:00

README.md

CodeQL

This open source repository contains the standard CodeQL libraries and queries that power GitHub Advanced Security and the other application security products that GitHub makes available to its customers worldwide. For the queries, libraries, and extractor that power Go analysis, visit the CodeQL for Go repository.

How do I learn CodeQL and run queries?

There is extensive documentation on getting started with writing CodeQL. You can use the CodeQL for Visual Studio Code extension or the interactive query console on LGTM.com (Semmle Legacy product) to try out your queries on any open source project that's currently being analyzed.

Contributing

We welcome contributions to our standard library and standard checks. Do you have an idea for a new check, or how to improve an existing query? Then please go ahead and open a pull request! Before you do, though, please take the time to read our contributing guidelines. You can also consult our style guides to learn how to format your code for consistency and clarity, how to write query metadata, and how to write query help documentation for your query.

License

The code in this repository is licensed under the MIT License by GitHub.

The CodeQL CLI (including the CodeQL engine) is hosted in a different repository and is licensed separately. If you'd like to use the CodeQL CLI to analyze closed-source code, you will need a separate commercial license; please contact us for further help.

Visual Studio Code integration

If you use Visual Studio Code to work in this repository, there are a few integration features to make development easier.

CodeQL for Visual Studio Code

You can install the CodeQL for Visual Studio Code extension to get syntax highlighting, IntelliSense, and code navigation for the QL language, as well as unit test support for testing CodeQL libraries and queries.

Tasks

The .vscode/tasks.json file defines custom tasks specific to working in this repository. To invoke one of these tasks, select the Terminal | Run Task... menu option, and then select the desired task from the dropdown. You can also invoke the Tasks: Run Task command from the command palette.