Skip to content
SPECIFICTION
Get listed

GitHub CodeQL vs gosec

GitHub CodeQL

codeql.github.com

gosec

github.com

Side by side

FigureGitHub CodeQLgosec
Price from$30/moFree
Free planYesYes
Free trial——
Open source—Yes
WebYes—
WindowsYes—
macOSYesYes
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published51
Spec score · Static Application Security Testing Software8.6 (#3)8.6 (#4)
Spec score · Static Application Security Testing Sast8.5 (#4)8.6 (#3)
Spec score · SAST Tools8.5 (#5)8.6 (#4)
Spec score · Static Analysis Tools8.5 (#8)8.6 (#7)
CI integrationThe CodeQL bundle can be downloaded for an external CI system to generate code-scanning results and upload them to GitHub.The project supplies an official GitHub Action for scanning repositories in workflows.
PurposeCodeQL is a language and toolchain for code analysis that treats code as data.gosec inspects Go source code for security problems by scanning its AST and SSA code representation.

Plans

GitHub CodeQL

  • Free for research and open sourceFree
  • GitHub Code Security$30 a month
  • CodeQL for open source and researchFree
  • GitHub Code Security$30 a month
  • GitHub Free with CodeQL code scanningPrice not published

GitHub CodeQL pricing →

gosec

  • gosecFree

gosec pricing →

In their own words

GitHub CodeQL

GitHub CodeQL has no write-up on Specifiction yet; its figures are above.

Visit codeql.github.com

gosec

gosec is a free Go source-code security checker that analyzes abstract syntax trees and static single assignment representations. It applies pattern rules, SSA analyzers, and taint analysis to detect issues including injection, path traversal, SSRF, unsafe deserialization, cryptography and TLS problems, blocklisted imports, and Go-specific risks. Findings map to Common Weakness Enumeration entries. Users can select or exclude rules, define path-based exclusions, and change settings such as audit mode. Reports are available as text, JSON, YAML, CSV, JUnit XML, HTML, SonarQube, golint, and SARIF. The project documents GitHub Actions and SARIF uploads to GitHub code scanning; its goanalysis package supports tools such as Bazel nogo. Local installation requires Go 1.25 or newer, with dependencies loaded through Go modules. An optional AI feature suggests fixes through Atlas Cloud, Gemini, Claude, OpenAI, or custom OpenAI-compatible APIs. Automated detection can produce false positives, which annotations can suppress. It is licensed under Apache License 2.0.

Visit github.com