diff --git a/trivy.changes b/trivy.changes index e8b9170..3cbe598 100644 --- a/trivy.changes +++ b/trivy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 11 17:05:04 UTC 2023 - Dirk Müller + +- actually create a PIE binary + ------------------------------------------------------------------- Fri Apr 28 07:31:35 UTC 2023 - dmueller@suse.com diff --git a/trivy.spec b/trivy.spec index c3eb6e3..5dfddcb 100644 --- a/trivy.spec +++ b/trivy.spec @@ -46,7 +46,7 @@ name of the container. %setup -qa1 %build -export CGO_ENABLED=0 +export CGO_ENABLED=1 go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go %install