Skip to content

Commit

Permalink
Added env folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Dec 9, 2024
1 parent fab7169 commit 2fd68a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws-template-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
with:
sarif_file: tfsec.sarif
working_directory: ${{ inputs.CONTEXT_FOLDER }}
tfsec_args: "--tfvars-file=${{ inputs.CONTEXT_FOLDER }}/${{ inputs.ENVIRONMENT_NAME }}.tfvars"
tfsec_args: "--tfvars-file=${{ inputs.CONTEXT_FOLDER }}/${{ inputs.CONFIG_FOLDER }}/${{ inputs.ENVIRONMENT_NAME }}.tfvars"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/initial"
CONFIG_FOLDER: ".."
CONFIG_FOLDER: "../${{ inputs.environment || 'dev' }}"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false
Expand All @@ -37,7 +37,7 @@ jobs:
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"
CONFIG_FOLDER: "."
CONFIG_FOLDER: "./${{ inputs.environment || 'dev' }}"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false
Expand Down

0 comments on commit 2fd68a6

Please sign in to comment.