From 88bb260e950b45216e58e12118751cf8fd95ee93 Mon Sep 17 00:00:00 2001 From: seanlongcc Date: Thu, 11 Jul 2024 15:56:22 -0400 Subject: [PATCH] update workflow --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70835ba..e0a0956 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: REPORT_DIR: reports INSPEC_REPORT_FILENAME: inspec_results.json - ATTESTATION_FILENAME: ${{ secrets.ATTESTATION_FILE}} + ATTESTATION_FILE: ${{ secrets.ATTESTATION_FILE}} ATTESTED_INSPEC_FILE_NAME: inspec_results.json CA_FILE_BASE64_AA: ${{ secrets.CA_FILE_BASE64_AA }} @@ -50,7 +50,8 @@ jobs: - name: Run Packer Validation run: | - packer build -var 'report={"report_to_heimdall":"${{ env.REPORT_TO_HEIMDALL }}","heimdall_url":"${{ env.HEIMDALL_URL }}","heimdall_api_key":"${{ env.HEIMDALL_API_KEY }}"}' -var 'attestation={"report_dir":"${{ env.REPORT_DIR }}","inspec_report_filename":"${{ env.INSPEC_REPORT_FILENAME }}","attestation_filename":"${{ env.ATTESTATION_FILENAME }}","attested_inspec_filename":"${{ env.ATTESTED_INSPEC_FILE_NAME }}"}' mongo-validate.pkr.hcl + echo "${{ env.ATTESTATION_FILE }}" > reports/attestation.json + packer build -var 'report={"report_to_heimdall":"${{ env.REPORT_TO_HEIMDALL }}","heimdall_url":"${{ env.HEIMDALL_URL }}","heimdall_api_key":"${{ env.HEIMDALL_API_KEY }}"}' -var 'attestation={"report_dir":"${{ env.REPORT_DIR }}","inspec_report_filename":"${{ env.INSPEC_REPORT_FILENAME }}","attestation_filename":"reports/attestation.json","attested_inspec_filename":"${{ env.ATTESTED_INSPEC_FILE_NAME }}"}' mongo-validate.pkr.hcl docker ps -a - name: Get Docker Image Tag