Skip to content

Commit 66ee78b

Browse files
committed
better cfn guard init
1 parent f19a2b8 commit 66ee78b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/quality-checks.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,10 @@ jobs:
248248
rm -rf /tmp/ruleset
249249
rm -rf cfn_guard_output
250250
251-
wget -O /tmp/ruleset.zip https://github.com/aws-cloudformation/aws-guard-rules-registry/releases/download/1.0.2/ruleset-build-v1.0.2.zip >/dev/null 2>&1
252-
unzip /tmp/ruleset.zip -d /tmp/ruleset/ >/dev/null 2>&1
253-
254-
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | sh >/dev/null 2>&1
255-
251+
wget -O /tmp/ruleset.zip https://github.com/aws-cloudformation/aws-guard-rules-registry/releases/download/1.0.2/ruleset-build-v1.0.2.zip
252+
unzip /tmp/ruleset.zip -d /tmp/ruleset/
253+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh -o /tmp/install-guard.sh
254+
sh /tmp/install-guard.sh
256255
mkdir -p cfn_guard_output
257256
258257
- name: Run cfn-guard script for sam templates
@@ -317,7 +316,7 @@ jobs:
317316
- name: Download terraform plans
318317
uses: actions/download-artifact@v5
319318
with:
320-
pattern: '*_terraform_plan'
319+
pattern: "*_terraform_plan"
321320
path: terraform_plans/
322321
merge-multiple: true
323322

@@ -332,7 +331,7 @@ jobs:
332331
ls -l terraform_plans/
333332
echo "terraform_plans_exist=true" >> "$GITHUB_OUTPUT"
334333
fi
335-
334+
336335
- name: Run cfn-guard script for terraform plans
337336
if: steps.check_terraform_plans.outputs.terraform_plans_exist == 'true'
338337
run: |

0 commit comments

Comments
 (0)