Skip to content

Commit ab86005

Browse files
authored
ci: enable cra scan (#103)
1 parent 835307b commit ab86005

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ jobs:
1515
call-terraform-ci-pipeline:
1616
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected]
1717
secrets: inherit
18+
with:
19+
craTarget: "examples/multizone-rule"
20+
craGoalIgnoreFile: "cra-tf-validate-ignore-goals.json"

cra-tf-validate-ignore-goals.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"scc_goals": [
3+
{
4+
"scc_goal_id": "3000408",
5+
"description": "Check whether Flow Logs for VPC are enabled",
6+
"ignore_reason": "This is part of the test example and not the current module",
7+
"is_valid": false
8+
}
9+
]
10+
}

examples/multizone-rule/main.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,10 @@ resource "ibm_is_vpc" "example_vpc" {
2525
tags = var.resource_tags
2626
}
2727

28-
resource "ibm_is_public_gateway" "testacc_gateway" {
29-
name = "${var.prefix}-pgateway"
30-
vpc = ibm_is_vpc.example_vpc.id
31-
zone = "${var.region}-1"
32-
resource_group = module.resource_group.resource_group_id
33-
}
34-
3528
resource "ibm_is_subnet" "testacc_subnet" {
3629
name = "${var.prefix}-subnet"
3730
vpc = ibm_is_vpc.example_vpc.id
3831
zone = "${var.region}-1"
39-
public_gateway = ibm_is_public_gateway.testacc_gateway.id
4032
total_ipv4_address_count = 256
4133
resource_group = module.resource_group.resource_group_id
4234
}

0 commit comments

Comments
 (0)