Skip to content

Commit

Permalink
actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlongcc committed Jul 8, 2024
1 parent dab0dd9 commit 4d70d59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions mongo-hardening.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +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
8 changes: 7 additions & 1 deletion mongo-validate.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ build {
name = "validate"
sources = ["source.docker.hardened"]

# docker ps
provisioner "shell-local" {
inline = [
"docker ps -a"
]
}

### SCAN
provisioner "shell-local" {
environment_vars = [
"CHEF_LICENSE=accept",
"PROFILE=${var.scan.inspec_profile}",
"CONTAINER_ID=${var.input_hardened_image.name}",
"REPORT_DIR=${var.scan.report_dir}",
Expand Down

0 comments on commit 4d70d59

Please sign in to comment.