GitHub - githubsatelliteworkshops/codeql-cpp: Finding security vulnerabilities with CodeQL in C/C++
Repository navigation
codeql-cppPublic
About
Finding security vulnerabilities with CodeQL in C/C++
Topics
2021 github-satellite-indiaResources
ReadmeCode of conduct
Code of conduct Activity Custom propertiesStars
15 starsWatchers
0 watchingForks
2 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
4 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| CODE_OF_CONDUCT.md | CODE_OF_CONDUCT.md | ||
| README.md | README.md | ||
| example_db.zip | example_db.zip | ||
| workshop.md | workshop.md | ||
Repository files navigation
Finding security vulnerabilities with CodeQL
@ammohant and @ds-ms
Moderated by: @ganeshrockz and @shigupt202
CodeQL is GitHub's expressive language and engine for code analysis, which allows you to explore source code to find bugs and security vulnerabilities. During these beginner-friendly workshops, you will learn to write queries in CodeQL and find known security vulnerabilities in open-source C++.
📣 Prerequisites
- Install Visual Studio Code .
- Install the CodeQL extension for Visual Studio Code .
- You do not need to install the CodeQL CLI: the extension will handle this for you.
- Set up the CodeQL starter workspace .
- Important: Don't forget to use
git clone --recursiveorgit submodule update --init --remoteto update the submodules when you clone this repository. This allows you to obtain the standard CodeQL query libraries. - Open the starter workspace in Visual Studio Code: File > Open Workspace > Browse to
vscode-codeql-starter/vscode-codeql-starter.code-workspacein your checkout of the starter workspace.
- Important: Don't forget to use
- Download and add the CodeQL database to be used in the workshop:
- Please download this CodeQL database .
- Unzip the database.
- Import the unzipped database into Visual Studio Code:
- Click the CodeQL icon in the left sidebar.
- Place your mouse over Databases , and click the
+sign that appears on the right. - Choose the unzipped database directory on your filesystem.
📚 Resources
- Learning CodeQL
- Learning CodeQL for CPP
- Using the CodeQL extension for VS Code
- More about CodeQL on GitHub Security Lab
- CodeQL on GitHub Learning Lab
About
Finding security vulnerabilities with CodeQL in C/C++