Skip to content

Commit 82d1cc2

Browse files
committed
added tf cleanup
1 parent fc2c8dc commit 82d1cc2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/stackql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,9 @@ jobs:
126126
with:
127127
test_query_file_path: './stackql/scripts/run-compliance-checks/run-compliance-checks.iql'
128128
expected_rows: 0
129+
130+
- name: "[CLEANUP] terraform destroy"
131+
if: failure()
132+
env:
133+
TF_VAR_google_credentials: ${{ secrets.GOOGLE_CREDENTIALS }}
134+
run: cd terraform; terraform destroy -auto-approve
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
SELECT 1
1+
SELECT name
2+
, JSON_EXTRACT(iamConfiguration, '$.publicAccessPrevention') as publicAccessPrevention
3+
FROM google.storage.buckets
4+
WHERE project = 'stackql-demo-2'
5+
AND publicAccessPrevention = 'inherited';

0 commit comments

Comments
 (0)