mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-05 23:10:06 +00:00
5f34058dc7
* add yamllint command to travis CI installs and runs a linter across the YAML in the project to ensure consistency in the written YAML. this uses yamllint and the default yamllint config with "truthy" and "line-length" disabled. * run dos2unix on CRLF files * YAMLLINT: remove trailing spaces * YAMLLint: add YAML document start * YAMLLint: too many spaces around bracket * YAMLLint: fix indentation * YAMLLint: remove duplicate key * YAMLLint: newline at end of file * YAMLLint: Too few spaces after comma * YAMLLint: too many spaces after colon
30 lines
754 B
YAML
30 lines
754 B
YAML
---
|
|
env:
|
|
- GO111MODULE=on
|
|
- KUBEBENCH_CFG=/etc/kube-bench/cfg
|
|
builds:
|
|
- main: main.go
|
|
binary: kube-bench
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion={{.Version}}"
|
|
- "-X github.com/aquasecurity/kube-bench/cmd.cfgDir={{.Env.KUBEBENCH_CFG}}"
|
|
# Archive customization
|
|
archive:
|
|
format: tar.gz
|
|
files:
|
|
- "cfg/**/*"
|
|
nfpm:
|
|
vendor: Aqua Security
|
|
description: "The Kubernetes Bench for Security is a Go application that checks whether Kubernetes is deployed according to security best practices"
|
|
license: Apache-2.0
|
|
homepage: https://github.com/aquasecurity/kube-bench
|
|
files:
|
|
"cfg/**/*": "/etc/kube-bench/cfg"
|
|
formats:
|
|
- deb
|
|
- rpm
|