2024-01-21 13:43:45 +03:00
|
|
|
distributable:
|
|
|
|
url: git+https://github.com/aquasecurity/trivy.git
|
|
|
|
ref: ${{version.tag}}
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: aquasecurity/trivy
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
curl.se/ca-certs: '*'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: '>=1.21'
|
|
|
|
linux:
|
|
|
|
# running gcc failed: exit status 1
|
|
|
|
gnu.org/gcc: '*'
|
|
|
|
script:
|
|
|
|
- go build $ARGS -ldflags="$LDFLAGS" ./cmd/trivy
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -trimpath
|
|
|
|
- -o={{prefix}}/bin/trivy
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -X github.com/aquasecurity/trivy/pkg/version.ver={{version}}
|
2024-07-01 17:36:27 +03:00
|
|
|
- -X github.com/aquasecurity/trivy/pkg/version/app.ver={{version}}
|
2024-01-21 13:43:45 +03:00
|
|
|
linux:
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/trivy
|
|
|
|
|
|
|
|
test:
|
|
|
|
- trivy image alpine:3.10
|
|
|
|
- trivy --version | grep {{version}}
|