Skip to content
Snippets Groups Projects
  • James Ward's avatar
    5f34058d
    Support Linting YAML as part of Travis CI build (#554) · 5f34058d
    James Ward authored
    * 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
    5f34058d
    History
    Support Linting YAML as part of Travis CI build (#554)
    James Ward authored
    * 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
.goreleaser.yml 754 B
---
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