Go

Review Go source code and binary scanning support in JFrog Xray.

Introduction

JFrog Xray provides security and compliance analysis for Go applications throughout the software development lifecycle. This page describes the supported scan contexts, capabilities, and dependency analysis available for Go.


Capabilities

The following capabilities are available for Go.

CapabilitySource Code ScanningBinary Scanning
Vulnerability Matching (CVEs)YESYES
License DetectionYESYES
Malicious Package DetectionYESNO
Operational RiskNONO
Smart Remediation🔜🔜

Source code scanning analyzes your project's dependency manifest files to identify components and their vulnerabilities. You can use it with the JFrog CLI jf audit command, Frogbot, IDE integrations, and CI pipelines. For more information, see Scan Your Source Code.

Which files a source scan reads depends on the scan method. For those differences, see Source Scanning Engines and Frogbot Versions.

Supported Files

Package ManagerSupported FilesAvailable with
Go Modulesgo.mod, go.sum (required)Default jf audit
Go Modulesgo.mod, go.sum – Direct/indirect via // indirect comments, replace directives honored, stdlib detection, Go 1.11+Frogbot V3

Dependency Graph

Package ManagerDependency Graph
Go Modules⚠️ Flat Dependency list

Additional Information

  • Go source code scanning requires Go installed in your environment.
  • The go.sum file must be present for accurate dependency scanning.
  • You can run go mod tidy to ensure all dependencies are correctly listed.

Related Topics



Did this page help you?