From 1f34456d91f872e77b7666fe438f0b0c6ba2de61 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Wed, 26 Jun 2024 19:29:35 +0000 Subject: [PATCH] 3.79.0 --- .abf.yml | 2 +- trufflehog.spec | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.abf.yml b/.abf.yml index cb637f9..efd4ef9 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - trufflehog-3.78.2.tar.gz: 34e41227540c32eebb906bf224846e58d61e987b + trufflehog-3.79.0.tar.gz: 8dc48b202f2b31b44a21a43796c04a43f7478804 diff --git a/trufflehog.spec b/trufflehog.spec index 6567bec..bdd3329 100644 --- a/trufflehog.spec +++ b/trufflehog.spec @@ -1,8 +1,9 @@ %define debug %nil %define debug_package %nil +%define secscan 1 Name: trufflehog -Version: 3.78.2 +Version: 3.79.0 Release: 1 Summary: Find credentials URL: https://trufflesecurity.com @@ -13,6 +14,11 @@ BuildRequires: go >= 1.21 BuildRequires: git-core BuildRequires: upx +%if %{secscan} +BuildRequires: clamav +BuildRequires: trivy +%endif + %description TruffleHog v3 is a complete rewrite in Go with many new powerful features. @@ -28,6 +34,11 @@ and billions of TLS certificates using our Driftwood technology. %prep %setup -q +%if %{secscan} +clamscan -ir . +trivy fs --scanners vuln --format cosign-vuln . +%endif + %build export GOPROXY=https://proxy.golang.org/cached-only @@ -41,3 +52,8 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} %doc README.md LICENSE %{_bindir}/%{name} +%check + +%if %{secscan} +clamscan -ir %{buildroot} +%endif \ No newline at end of file