2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tfsec";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.28.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-07-14 22:03:04 +00:00
|
|
|
owner = "aquasecurity";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "tfsec";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-Dulbo5ZTw4+1XxjpnZ1aIsVPLVEqwQKdNMv+L9/j1wc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
ldflags = [
|
2022-06-26 10:26:21 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-10-09 19:29:22 +00:00
|
|
|
"-X=github.com/aquasecurity/tfsec/version.Version=v${version}"
|
2022-03-30 09:31:56 +00:00
|
|
|
## not sure if this is needed (https://github.com/aquasecurity/tfsec/blob/master/.goreleaser.yml#L6)
|
|
|
|
# "-extldflags '-fno-PIC -static'"
|
|
|
|
];
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-Hu530cBJWGtvMmQ6gbROXf5JBfkOfc4nwznsKBTegUk=";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/tfsec"
|
|
|
|
"cmd/tfsec-docs"
|
|
|
|
"cmd/tfsec-checkgen"
|
2021-07-14 22:03:04 +00:00
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "Static analysis powered security scanner for terraform code";
|
|
|
|
homepage = "https://github.com/aquasecurity/tfsec";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/aquasecurity/tfsec/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
peterromfeldhk
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|