Add veracode aws cli searcher

This commit is contained in:
Lukas Cech
2025-01-13 15:11:39 +01:00
parent 3363f0b90d
commit 56a2ca7c5a
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ in
{ {
imports = [ imports = [
(import ./veracode/aws-cli.nix { (import ./veracode/aws-cli.nix {
inherit homedir lib; inherit homedir lib pkgs;
}) })
]; ];
+11 -1
View File
@@ -1,6 +1,7 @@
{ {
lib,
homedir, homedir,
lib,
pkgs,
... ...
}: }:
let let
@@ -262,4 +263,13 @@ in
)} )}
''; '';
}; };
programs.zsh.shellAliases = {
veracode-find = ''${pkgs.writeShellScript "veracode-find" ''
for profile in $(aws configure list-profiles | grep -E '^(us|eu)-'); do
echo "=== $profile ==="
aws --profile $profile $@;
done
''}'';
};
} }