Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlongcc committed Jul 8, 2024
1 parent 8153d01 commit aa52972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mongo-hardening.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
4 changes: 2 additions & 2 deletions mongo-validate.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down

0 comments on commit aa52972

Please sign in to comment.