Direct issues installing chain-bench
via nix
through the channels mentioned here
You can use nix
on Linux or macOS and on other platforms unofficially.
nix-env --install -A nixpkgs.chain-bench
Or through your configuration as usual
NixOS:
# your other config ...
environment.systemPackages = with pkgs; [
# your other packages ...
chain-bench
];
home-manager:
# your other config ...
home.packages = with pkgs; [
# your other packages ...
chain-bench
];
Download the archive file for your operating system/architecture from here.
Unpack the archive, and put the binary somewhere in your $PATH
(on UNIX-y systems, /usr/local/bin
or the like).
Make sure it has execution bits turned on.
mkdir -p $GOPATH/src/github.com/aquasecurity
cd $GOPATH/src/github.com/aquasecurity
git clone --depth 1 https://github.com/aquasecurity/chain-bench
cd chain-bench/cmd/chain-bench/
export GO111MODULE=on
go install
With a sufficient version of go
you can install and build with go install github.com/aquasecurity/chain-bench/cmd/chain-bench@latest
docker pull aquasec/chain-bench:latest
Example:
docker run --rm aquasec/chain-bench:latest scan --repository-url <REPOSITORY_URL> --access-token <TOKEN>