gosec
gosec: A focused, free SAST tool for Go with CI workflows, taint analysis, and flexible reporting. Ranked #22 of 26 in SAST Tools by our editors (6.9/10); pricing: Free plan; best for go teams needing free security analysis.
At a glance
- Editor score6.9 / 10
- PricingFree plan
- Best forGo teams needing free security analysis
- Free planYes
- Paid fromFree
- Pull request scansYes
- Facts checked21 Sep 2026

Where it wins
- AST, SSA, and taint analysis cover varied Go security risks
- GitHub Actions supports pull-request scans and CI workflows
- Reports export to JSON, SARIF, HTML, YAML, and more
Where it doesn't
- Analysis is focused on Go source code
- The documented platforms are Linux and macOS
- AI-assisted fixes require a configurable AI provider
Our verdict on gosec
Gosec is an open-source command-line security scanner for Go projects. It is designed for Go teams that want free source-code analysis in local workflows, pull requests, or continuous integration. Its checks use AST and SSA representations, while taint analysis covers injection, path traversal, SSRF, XSS, and related risks. The scanner also identifies issues such as hardcoded credentials, crypto and TLS weaknesses, unsafe deserialization, and open redirects.
Its strongest fit is a repository workflow built around GitHub Actions. Gosec can run as a GitHub Action, support pull-request workflows, and integrate with CI pipelines. Additional documented integration points include Bazel nogo and Docker. Teams can control rule inclusion and exclusion, apply path-based exclusions, and use configuration files. The published output formats include JSON, SARIF, HTML, YAML, CSV, JUnit XML, SonarQube, golint, and text, giving teams options for review, reporting, and downstream tooling.
Gosec is particularly suitable for teams that standardize on Go and want an open-source SAST option with configurable rules and multiple analysis methods. Its verified language coverage is limited to one language, so teams assessing projects beyond Go should choose a tool with broader language support. The documented workflow centers on command-line and automation use across Linux and macOS. AI-assisted fix suggestions are available through configurable AI providers, but teams should treat that capability as an optional part of the workflow rather than the core scanner. Choose Gosec for focused Go security analysis; consider an alternative when broader language coverage is essential.
Your product? Our editors can test gosec in depth and publish a review, labelled as paid · from $149/mo →
gosec pricing
gosec fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Analysis targets | source code |
| Languages supported | Not verified |
| Pull request scans | Yes |
| IDE support | Not verified |
| CI/CD integration | Yes |
| Custom security rules | Not verified |
| Automated fixes | Yes |
| Deployment | Self-hosted |
| Platforms | Linux, macOS |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 3 integrations: GitHub Actions, GitHub code scanning, Bazel nogo |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 21 Sep 2026 |
gosec integrations
gosec lists 3 integrations on its own site.
- GitHub Actions
- GitHub code scanning
- Bazel nogo
Alternatives to gosec
- Semgrep CodeBroad SAST coverage with pull-request, CI/CD, IDE, custom-rule, and AI-assisted workflows.9.4
- Snyk CodeAffordable source-code SAST with pull-request, IDE, CI/CD, and automated-fix workflows.9.2
- GitHub CodeQLDeep SAST for GitHub workflows, with free public-repository scanning.9.0
Also Ranked In
gosec is ranked in 4 of our directories.
Used gosec? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used gosec for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
gosec is listed in our SAST Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/gosec/"><img src="https://www.itechguides.com/best/badge/gosec.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


