Skip to content

Commit

Permalink
fix decryption quotes (#283)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <[email protected]>
  • Loading branch information
rdhar authored Aug 26, 2024
1 parent e35323d commit 13891b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tf_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:
arg_backend_config: ${{ contains(matrix.dir, 'bucket') && format('backend/{0}.tfbackend', matrix.env) || '' }}
arg_var_file: ${{ contains(matrix.dir, 'instance') && format('env/{0}.tfvars', matrix.env) || '' }}
arg_workspace: ${{ matrix.env }}
encrypt_passphrase: ${{ secrets.TF_ENCRYPTION }}
arg_or_create: true
cache_plugins: true
encrypt_passphrase: ${{ secrets.TF_ENCRYPTION }}
4 changes: 2 additions & 2 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ module.exports = async ({ context, core, exec, github }) => {
// Download and unzip the TF plan artifact.
await exec.exec("/bin/bash", [
"-c",
`curl --no-progress-meter --location ${download_artifact.url} --output ${tf_identifier}`,
`curl --no-progress-meter --location "${download_artifact.url}" --output "${tf_identifier}"`,
]);
await exec.exec("/bin/bash", [
"-c",
`unzip ${tf_identifier} -d ${process.env.arg_chdir.replace(/^-chdir=/, "")}`,
`unzip "${tf_identifier}" -d "${process.env.arg_chdir.replace(/^-chdir=/, "")}"`,
]);

// Decrypt the TF plan file if encrypted.
Expand Down

0 comments on commit 13891b3

Please sign in to comment.