Skip to content

Commit

Permalink
added back attestation and updated console output for report
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlongcc committed Jul 17, 2024
1 parent ce2aedf commit eba44bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mongo-validate.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ build {
script = "spec/scripts/scan.sh"
}

// ### ATTEST
// provisioner "shell-local" {
// environment_vars = [
// "INSPEC_FILE=${var.attestation.inspec_report_filename}",
// "REPORT_DIR=${var.attestation.report_dir}",
// "ATTESTATION_FILE=${var.attestation.attestation_filename}",
// "ATTESTED_FILE=${var.attestation.attested_inspec_filename}"
// ]
// script = "spec/scripts/attestation.sh"
// }
### ATTEST
provisioner "shell-local" {
environment_vars = [
"INSPEC_FILE=${var.attestation.inspec_report_filename}",
"REPORT_DIR=${var.attestation.report_dir}",
"ATTESTATION_FILE=${var.attestation.attestation_filename}",
"ATTESTED_FILE=${var.attestation.attested_inspec_filename}"
]
script = "spec/scripts/attestation.sh"
}

### REPORT
provisioner "shell-local" {
Expand Down
2 changes: 2 additions & 0 deletions spec/scripts/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -uo pipefail

### Report InSpec results to Heimdall ###
echo "--- Reporting InSpec results to Heimdall ---"

saf view summary -i $REPORT_DIR/*.json
if $REPORT_TO_HEIMDALL
then
Expand Down

0 comments on commit eba44bc

Please sign in to comment.