Skip to content

Commit

Permalink
Add snyk-check script in env
Browse files Browse the repository at this point in the history
  • Loading branch information
peel committed Nov 27, 2024
1 parent 3183179 commit 561a64d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@
jre
metals
sbt
# pkgs.nodePackages.snyk
pkgs.kubernetes-helm
# (pkgs.wrapHelm pkgs.kubernetes-helm {plugins = [pkgs.kubernetes-helmPlugins.helm-diff];})
# pkgs.google-cloud-sdk.withExtraComponents( with pkgs.google-cloud-sdk.components [ gke-gcloud-auth-plugin ]);
(pkgs.google-cloud-sdk.withExtraComponents [pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin])
# pkgs.google-cloud-sdk-gce
pkgs.snyk
];
scripts = {
snyk-check.exec = ''
for p in kinesis pubsub kafka nsq; do sbt "project ''${p}Distroless; set version := \"latest\"; Docker / publishLocal"; snyk container test --platform=linux/arm64 --app-vulns snowplow/scala-stream-collector-''${p}:latest-distroless; done
'';
};
languages.nix.enable = true;
pre-commit.hooks = {
alejandra.enable = true;
Expand Down

0 comments on commit 561a64d

Please sign in to comment.