From f387a4dcedc5ef2519565304e11fa99ccda916c6 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 2 Jul 2024 22:20:41 +0000 Subject: [PATCH] 1.2.1 --- .abf.yml | 2 +- finch.spec | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.abf.yml b/.abf.yml index aeb5b2f..909c69b 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - finch-1.2.0.tar.gz: 26260f4359c8846d42e7d61594a529f160108b13 + finch-1.2.1.tar.gz: 3bee43459379b67ceae0afe496b3877916441a72 diff --git a/finch.spec b/finch.spec index 807a382..87677ae 100644 --- a/finch.spec +++ b/finch.spec @@ -1,8 +1,9 @@ %define debug %nil %define debug_package %nil +%define secscan 1 Name: finch -Version: 1.2.0 +Version: 1.2.1 Release: 1 Summary: The Finch CLI an open source client for container development URL: https://github.com/runfinch/finch @@ -12,6 +13,10 @@ Group: Development/Other BuildRequires: go BuildRequires: git-core BuildRequires: upx +%if %{secscan} +BuildRequires: clamav +BuildRequires: trivy +%endif %description @@ -25,9 +30,13 @@ offering a simple native client to tie it all together %prep %setup -q +%if %{secscan} +clamscan -ir . +trivy fs --scanners vuln --format cosign-vuln . +%endif %build -export GOPROXY=direct +export GOPROXY=https://proxy.golang.org/cached-only export VERSION=%{verson} #make %{name} @@ -42,3 +51,10 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} %doc README.md LICENSE %{_bindir}/%{name} +%check +export GOPROXY=https://proxy.golang.org/cached-only +#go test ./... + +%if %{secscan} +clamscan -ir %{buildroot} +%endif