Skip to content

Commit 96bcfd2

Browse files
committed
Make early variables available for show and apply
1 parent adc1337 commit 96bcfd2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/test-version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ jobs:
611611
run: |
612612
echo "The terraform version was $DETECTED_TERRAFORM_VERSION"
613613
614-
if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.11"* ]]; then
614+
if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.12"* ]]; then
615615
echo "::error:: Latest version was not used"
616616
exit 1
617617
fi
@@ -632,7 +632,7 @@ jobs:
632632
run: |
633633
echo "The terraform version was $DETECTED_TERRAFORM_VERSION"
634634
635-
if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.11"* ]]; then
635+
if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.12"* ]]; then
636636
echo "::error:: Latest version was not used"
637637
exit 1
638638
fi

.github/zizmor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
dflook/terraform-apply: ref-pin

image/actions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function init-test() {
210210
function set-init-args() {
211211
INIT_ARGS=""
212212

213-
if [[ -n "$INPUT_BACKEND_CONFIG_FILE" ]]; then
213+
if [[ -n "${INPUT_BACKEND_CONFIG_FILE:-}" ]]; then
214214
for file in $(echo "$INPUT_BACKEND_CONFIG_FILE" | tr ',' '\n'); do
215215

216216
if [[ ! -f "$file" ]]; then
@@ -222,7 +222,7 @@ function set-init-args() {
222222
done
223223
fi
224224

225-
if [[ -n "$INPUT_BACKEND_CONFIG" ]]; then
225+
if [[ -n "${INPUT_BACKEND_CONFIG:-}" ]]; then
226226
for config in $(echo "$INPUT_BACKEND_CONFIG" | tr ',' '\n'); do
227227
INIT_ARGS="$INIT_ARGS -backend-config=$config"
228228
done

0 commit comments

Comments
 (0)