Skip to main content
Glama

Trivy

Official
by aquasecurity
id.go699 B
package findings import ( "crypto/sha1" "encoding/hex" "io" "strconv" ) func MakeFindingID(src, identifier, artifactType, name, version, path string, line int) string { h := sha1.New() _, _ = io.WriteString(h, src) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, identifier) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, artifactType) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, name) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, version) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, path) _, _ = io.WriteString(h, "|") _, _ = io.WriteString(h, strconv.Itoa(line)) return hex.EncodeToString(h.Sum(nil))[:16] // short, but stable }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aquasecurity/trivy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server