Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Trivy ignore file — accepted-risk advisories (reviewed by security).
#
# GO-2026-5932 — golang.org/x/crypto/openpgp is unmaintained.
# - No fixed version exists (advisory applies to all versions; "unmaintained").
# - Pulled transitively via gofiber/fiber/v3 -> golang.org/x/crypto/acme/autocert.
# - The openpgp package is NOT imported by this module (only acme/autocert is
# reachable), so the unmaintained-package risk is not exercised here.
# - Accepted until an upstream (fiber/x-crypto) change removes the transitive edge.
GO-2026-5932

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== Files of interest ==\n'
git ls-files | rg '(^|/)(\.trivyignore|go\.mod|go\.sum|trivy.*yml|trivy.*yaml|\.github/workflows/.*)$' || true

printf '\n== .trivyignore ==\n'
if [ -f .trivyignore ]; then
  cat -n .trivyignore
fi

printf '\n== go.mod ==\n'
if [ -f go.mod ]; then
  cat -n go.mod
fi

printf '\n== Search for openpgp / acme/autocert references ==\n'
rg -n 'openpgp|acme/autocert|GO-2026-5932|trivyignore|trivy' -S .

Repository: LerianStudio/lib-observability

Length of output: 4010


Scope or expire this ignore entry. .trivyignore suppresses GO-2026-5932 by ID only, so a later openpgp dependency would also be hidden. Prefer a scoped Trivy YAML rule with expired_at, or pair this ignore with a CI check that keeps openpgp unreachable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.trivyignore at line 9, Scope the GO-2026-5932 suppression in .trivyignore
so it only applies to the intended openpgp dependency, and add an expiration via
a Trivy YAML rule or an equivalent CI check that verifies openpgp remains
unreachable. Do not retain an unbounded ID-only ignore entry.

Loading