Agent skill · Security

codeql

Comprehensive guide for setting up and configuring CodeQL code scanning via GitHub Actions workflows and the CodeQL CLI. This skill should be used when users need help with code scanning configuration, CodeQL workflow files, CodeQL CLI commands, SARIF output, security analysis setup, or troubleshooting CodeQL analysis.

GitHub68,948★ · +463/wk · 2 repos on radarProfile →
copilotMIT
Install
npx skills add github/awesome-copilot --skill codeql --agent copilot

Same command for any agent — swap --agent for claude-code, codex, cursor.

Facts
Files in the skill folder: 7
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/codeql/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 37,432 · +281 this week
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# CodeQL Code Scanning This skill provides procedural guidance for configuring and running CodeQL code scanning — both through GitHub Actions workflows and the standalone CodeQL CLI. ## When to Use This Skill Use this skill when the request involves: - Creating or customizing a `codeql.yml` GitHub Actions workflow - Choosing between default setup and advanced setup for code scanning - Configuring CodeQL language matrix, build modes, or query suites - Running CodeQL CLI locally (`codeql database create`, `database analyze`, `github upload-results`) - Understanding or interpreting SARIF output from CodeQL - Troubleshooting CodeQL analysis failures (build modes, compiled languages, runner requirements) - Setting up CodeQL for monorepos with per-component scanning - Configuring dependency caching, custom query packs, or model packs ## Supported Languages CodeQL supports the following language identifiers: | Language | Identifier | Alternatives | |---|---|---| | C/C++ | `c-cpp` | `c`, `cpp` | | C# | `csharp` | — | | Go | `go` | — | | Java/Kotlin | `java-kotlin` | `java`, `kotlin` | | JavaScript/TypeScript | `javascript-typescript` | `javascript`, `typescript` | | Python | `python` | — |

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Supported Languages
  3. Core Workflow — GitHub Actions
  4. Step 1: Choose Setup Type
  5. Step 2: Configure Workflow Triggers
  6. Step 3: Configure Permissions
  7. Step 4: Configure Language Matrix
  8. Step 5: Configure CodeQL Init and Analysis
  9. Step 6: Monorepo Configuration
  10. Step 7: Manual Build Steps (Compiled Languages)
  11. Core Workflow — CodeQL CLI
  12. Step 1: Install the CodeQL CLI
  13. Step 2: Create a CodeQL Database
  14. Step 3: Analyze the Database
Ships with 6 files
  • references/alert-management.md
  • references/cli-commands.md
  • references/compiled-languages.md
  • references/sarif-output.md
  • references/troubleshooting.md
  • references/workflow-configuration.md
Commands it runs
Download from https://github.com/github/codeql-action/releases
Extract and add to PATH
export PATH="$HOME/codeql:$PATH"
Verify installation
codeql resolve packs
codeql resolve languages
Single language
codeql database create codeql-db \
Multiple languages (cluster mode)
codeql database create codeql-dbs \
More from awesome-copilot
All skills →
About this skill
What does the codeql skill do?

Comprehensive guide for setting up and configuring CodeQL code scanning via GitHub Actions workflows and the CodeQL CLI. This skill should be used when users need help with code scanning configuration, CodeQL workflow files, CodeQL CLI commands, SARIF output, security analysis setup, or troubleshooting CodeQL analysis.

How do I install it?

Run `npx skills add github/awesome-copilot --skill codeql --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going