Skip to content

Commit 1ea09b4

Browse files
committed
fix: fix primary tables
1 parent 66f5222 commit 1ea09b4

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

compliance/controls/aws/aws_cis_v200_3_9.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Query:
1414
SELECT
1515
arn,
1616
account_id,
17+
og_account_id,
18+
og_resource_id,
1719
region,
1820
owner_id,
1921
vpc_id,
@@ -36,8 +38,8 @@ Query:
3638
)
3739
SELECT
3840
v.arn AS resource,
39-
v.account_id AS og_account_id,
40-
v.vpc_id AS og_resource_id,
41+
v.og_account_id AS og_account_id,
42+
v.og_resource_id AS og_resource_id,
4143
CASE
4244
WHEN v.account_id <> v.owner_id THEN 'skip'
4345
WHEN f.resource_id IS NOT NULL THEN 'ok'

compliance/controls/azure/azure_cis_v150_2_6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Query:
88
- azure_policy_assignment
99
- azure_subscription
1010
Parameters: []
11-
PrimaryTable: azure_policy_assignment
11+
PrimaryTable: azure_subscription
1212
QueryToExecute: |
1313
WITH policy_assignment_parameters AS (
1414
SELECT

compliance/controls/azure/azure_cis_v210_5_2_1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Query:
88
- azure_log_alert
99
- azure_subscription
1010
Parameters: []
11-
PrimaryTable: azure_log_alert
11+
PrimaryTable: azure_subscription
1212
QueryToExecute: |
1313
WITH alert_rule AS (
1414
SELECT

compliance/controls/azure/azure_cis_v210_6_6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Query:
99
- azure_network_watcher
1010
- azure_subscription
1111
Parameters: []
12-
PrimaryTable: azure_network_watcher
12+
PrimaryTable: azure_location
1313
QueryToExecute: |
1414
SELECT
1515
loc.id AS resource,

0 commit comments

Comments
 (0)