From 53c3f3127e05448c15c51d880e7cf4959efe9307 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 2 Jul 2024 22:14:28 +0000 Subject: [PATCH] 0.122.0 --- terraform-provider-yandex.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/terraform-provider-yandex.spec b/terraform-provider-yandex.spec index 68c318b..23264c3 100644 --- a/terraform-provider-yandex.spec +++ b/terraform-provider-yandex.spec @@ -6,6 +6,8 @@ %else %global goarch 386 %endif +%define secscan 1 + Name: terraform-provider-%{tfprovider} Version: 0.122.0 @@ -20,11 +22,21 @@ BuildRequires: git-core BuildRequires: upx BuildRequires: terraform +%if %{secscan} +BuildRequires: clamav +BuildRequires: trivy +%endif + %description %{summary} %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,6 +53,13 @@ install -Dm0755 bin/%{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfpr %{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name} +%check +export GOPROXY=https://proxy.golang.org/cached-only +#go test ./... + +%if %{secscan} +clamscan -ir %{buildroot} +%endif