macOS
brew install goseclocal Homebrew formula metadata
sudo port install gosecMacPorts ports tree · security/gosec/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gosec pour les workflows d'agents IA.
installation
brew install goseclocal Homebrew formula metadata
sudo port install gosecMacPorts ports tree · security/gosec/Portfile · Source: api.github.com
sudo apk add gosecAlpine Linux edge package indexes · gosec · Source: dl-cdn.alpinelinux.org
sudo dnf install gosecFedora Rawhide package metadata · gosec · Source: dl.fedoraproject.org
nix profile install nixpkgs#gosecnixpkgs package indexes · pkgs/by-name/go/gosec/package.nix · Source: api.github.com
sudo zypper install gosecopenSUSE Tumbleweed package metadata · gosec · Source: download.opensuse.org
scoop install main/gosecScoop official bucket manifest trees · bucket/gosec.json · Source: api.github.com
aperçu
Golang security checker
historique
gosec is the SecureGo project's static security scanner for Go source code, using AST, SSA, and taint-analysis rules to find common vulnerability patterns before code ships.
The GitHub repository was created on July 18, 2016. Its README describes gosec as a Go security checker that inspects source code by scanning Go AST and SSA representations, while SecureGo's tools page frames the project as a way to programmatically enforce Secure Go guidelines.
Over time the project expanded from pattern-style checks into a broader rule catalog. Official rule documentation groups findings by general secure coding, injection, filesystem permissions, crypto and protocol security, import blocklists, language/runtime safety, and taint analysis. The README also documents CWE mapping, SARIF output, GitHub Action usage, Go analysis integration, and configurable global and per-rule settings.
gosec became a standard Go security linter because it fits normal Go and CI workflows: go install for local use, a GitHub Action for repository scanning, SARIF output for GitHub code scanning, and package-manager distribution through apk, Homebrew, dnf, MacPorts, Nix, Scoop, and zypper according to the input package facts.
The project sits in the same practical lane as go vet and staticcheck but focuses on security-sensitive APIs and data flows. Its CII Best Practices badge, GitHub Action, Go analysis package, and package-manager coverage made it accessible both to individual Go developers and to teams wiring security checks into CI.
The basic local workflow is gosec ./..., with options for JSON or SARIF reports, selected rule inclusion or exclusion, and a config.json file passed through -conf. CI workflows often run securego/gosec as an action and upload SARIF to GitHub code scanning.
gosec rules include hardcoded credentials, unchecked errors, unsafe usage, SQL and command injection patterns, archive/path traversal risks, TLS and crypto weaknesses, blocklisted imports, integer/slice issues, and taint-analysis checks for SQL injection, command injection, SSRF, XSS, log injection, SMTP injection, server-side template injection, unsafe deserialization, and open redirects.
For package maintainers, gosec is important because it is easy to add as a single CLI check across Go packages without adopting a SaaS scanner. It gives distro and CI users a reproducible local executable, machine-readable output, CWE mappings, and a documented config file.
Its package-manager footprint also matters: a security scanner being available from Homebrew, Linux distro channels, Nix, Scoop, and container/GitHub Action paths means the same scanner can be used by laptop developers, CI jobs, and release pipelines.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
config.jsonexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
gosec | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/securego/gosec
métadonnées d'installation
| Clé du paquet | brew:gosec |
|---|---|
| Version | 2.28.0 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gosec |
| Page d'accueil | https://securego.io/ |
| Dépôt | https://github.com/securego/gosec |
| Docs amont | https://github.com/securego/gosec#readme |
| Licence | Apache-2.0 |
| Archive source | https://github.com/securego/gosec/archive/refs/tags/v2.28.0.tar.gz |
| Dernière mise à jour | 2026-07-14T12:15:33Z |
| Pulse | updated |
| Dépendances | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gosec |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
gosec
nix profile install nixpkgs#gosecgosec 2.23.0-r3
Go source code static analyzer, focusing on security
https://github.com/securego/gosec
sudo apk add gosecgosec 2.27.1-1.fc45
Go security checker
https://github.com/securego/gosec
sudo dnf install gosecgosec 2.27.1-1.1
CLI tool to scan the Go AST and SSA code representations for security problems
https://github.com/securego/gosec
sudo zypper install gosecgosec
sudo port install gosecmain/gosec
scoop install main/gosecpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.