From aa5297274317bc9db991d46e452a871f6b72a5b4 Mon Sep 17 00:00:00 2001 From: seanlongcc Date: Mon, 8 Jul 2024 14:31:18 -0400 Subject: [PATCH] update actions --- mongo-hardening.pkr.hcl | 2 +- mongo-validate.pkr.hcl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mongo-hardening.pkr.hcl b/mongo-hardening.pkr.hcl index f1fd982..2ad0ca9 100644 --- a/mongo-hardening.pkr.hcl +++ b/mongo-hardening.pkr.hcl @@ -58,7 +58,7 @@ source "docker" "target" { # Run the process to harden the docker container build { name = "harden" - sources = ["source.docker.target"] + sources = "source.docker.target" # Create docker volumes provisioner "shell-local" { diff --git a/mongo-validate.pkr.hcl b/mongo-validate.pkr.hcl index 7c9a74d..4b2c89c 100644 --- a/mongo-validate.pkr.hcl +++ b/mongo-validate.pkr.hcl @@ -57,13 +57,13 @@ source "docker" "hardened" { # Run validation process build { name = "validate" - sources = ["source.docker.hardened"] + sources = "source.docker.hardened" # docker ps provisioner "shell-local" { inline = [ "docker ps -a", - "docker exec -it mongo-hardened sh -c 'ls'", + "docker exec mongo-hardened sh -c 'ls'", "cinc-auditor detect -t docker://mongo-hardened", "docker ps -a" ]