---
stable_id: skills/skills-sh-trailofbits-skills-codeql
type: skills
title: skills-sh-trailofbits-skills-codeql
summary: >-
  # Build Database Workflow

  Create high-quality CodeQL databases by trying build methods in sequence until
  one produces good results.

  ## Task System

  Create these tasks on workflow start:

  ```

  TaskCreate: "Detect language and configure" (Step 1)

  TaskCreate: "Build database" (Step 2) - blockedBy: Step 1

  TaskCreate: "Apply fixes if needed" (Step 3) - blockedBy: Step 2

  TaskCreate: "Assess quality" (Step 4) - blockedBy: Step 3

  TaskCreate: "Improve quality if needed" (Step 5) - blockedBy: Step 4
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/trailofbits/skills/HEAD/plugins/static-analysis/skills/codeql/workflows/build-database.md
license: ""
upstream_ref: https://skills.sh/trailofbits/skills/codeql
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:10.761Z
content_sha256: 7fb24c47ffe46a0d6c99b59eadbfd3159017703e77ef799bb1d8e1e7095518f1
---
